bigcoke233 / bizarre-inspirer Goto Github PK
View Code? Open in Web Editor NEW😵 怪奇灵感生成器
Home Page: https://bi.guhub.cn/
😵 怪奇灵感生成器
Home Page: https://bi.guhub.cn/
现象:当连续点击 想一想 按钮后单击空格会导致两次词语生成。
推测:点击后焦点留在按钮上,按空格可以触发单击和按钮两个事件。
证实:
第二步和第四步响应不同,同时焦点位置也不同。
Q.E.D
修正建议:在监听到键盘按键后判断焦点是否在按钮上,如果在则直接取消事件传播。如果不在则调用一次生成函数。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.