惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
E
Exploit-DB.com RSS Feed
T
Tenable Blog
P
Privacy International News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
H
Hacker News: Front Page
S
Securelist
Recent Commits to openclaw:main
Recent Commits to openclaw:main
A
Arctic Wolf
K
Kaspersky official blog
C
Cybersecurity and Infrastructure Security Agency CISA
Cloudbric
Cloudbric
Help Net Security
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
Intezer
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 叶小钗
The Cloudflare Blog
L
LINUX DO - 热门话题
Last Week in AI
Last Week in AI
V
V2EX
L
LINUX DO - 最新话题
AWS News Blog
AWS News Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Hacker News
The Hacker News
W
WeLiveSecurity
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
WordPress大学
WordPress大学
罗磊的独立博客
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
D
Docker
O
OpenAI News
Martin Fowler
Martin Fowler
N
News and Events Feed by Topic
S
Security @ Cisco Blogs
G
Google Developers Blog
H
Heimdal Security Blog
T
Troy Hunt's Blog
Vercel News
Vercel News
Recent Announcements
Recent Announcements
爱范儿
爱范儿
AI
AI

程序员

暂无文章

把图片变成可点击的组件— 一个简单但好用的前端库
rizon · 2026-05-17 · via 程序员

https://clickable-img.dev.noteloom.app/

这是我之前做公司的项目时顺手做的一个前端库。
我们的微信小程序有一个弹窗,运营经常要更新,弹窗里还有多个点击热区,我就想 UI 出完图后,运营自己配置一下就可以热更新,就不用再改代码了。所以就有了这个工具。
上传一个图片,可视化圈选热点区域,配置点击事件。
代码里监听图片的点击事件即可。

东西很简单,原理也很简单。不过确实能在某些特定场景下省下很多事情。