Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种在等待用户做出选择时暂停 javascript 函数的方法。我希望它像提示、警报或确认一样工作(他们暂停脚本),但我想在 html 中创建自己的查询框。
有什么办法可以做到这一点?
Setup a callback that will be called when the user make the choice then let the javascript end after showing the choices to the user.