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.
编辑澄清:
是否有将代码插入到 alert() 或 prompt() 的方法,例如在运行之前或运行时将数据添加到 alert() 或提示的一种循环或方法?
-谢谢
先做你的循环
for (var n = 0; n<= 50; n++) {varnum1= n*10 - 1;} /*some way to output data tothe alert*/ alert("starting string" + varnum1 + "end of string")