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

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

路明笔记

停更的两个月 使用 AI 从任意博客系统迁移到 Typecho 归档:REDMI Watch 5 eSIM 固件修改计划 路明笔记 2 月优化日志 我不需要一块全智能手表 REDMI Watch 5 eSIM 新固件恢复快应用安装详细教程 彻底解决 REDMI Watch 5(包括eSIM版)快应用数量限制问题及其原理解读 人生“转折点” —— 我的2025 给洛阳八高电教委的一些话
新项目:随机转盘
老陈爱刷机 · 2026-01-03 · via 路明笔记

我们班有一个传统——每周班会课上,老师会允许量化积分排名前五的同学随机抽取一项奖励。

其中有一些奖项,比如"免作业",需要比其它奖项更难被抽到。此时就要使用带有权重功能的抽奖工具了。但是,目前市面上的抽奖工具普遍不符合我的审美,而且带有权重功能的抽奖工具太少了,还都或多或少地有嵌入广告,十分烦人。

既然网上的不能满足我的需求,那就……自己做一个!

接下来向您介绍,由我设计界面,由 AI 编写逻辑代码做出的 HTML 作品——转盘。


界面

主界面

采用上下结构,上方是一系列自定义设置,下方是显示一半的转盘。

转盘只显示一半这点学习了 OPPO Lab 里的抽奖程序。

介绍

首先,转盘可以带权重抽奖。由于权重不是按照百分制计算,所以各个奖项的权重之和不一定是 100,你甚至可以将某个奖项的权重设置为 2147483647。

更改奖项界面

用户可以将当前的一组奖项保存为预设,以便在特定场景快速恢复及使用。

预设会以 Cookies 方式保存在用户的电脑中。保存数量无上限。

编辑预设界面

然后就没了。就是这么简单。

结语

欢迎线上体验:https://random.luming.cool/