我想单击按钮并计算数量,但它不起作用。 和错误消息:Uncaught ReferenceError:cnt 未定义 这是我的代码:
Make777 You Clicked This Button Times!!!!!!
"use strict";
function dongjak_button(){
cnt = 0;
cnt++;
document.getElementById("number").value = cnt;
}
帮助。我希望 cnt 变量有效。并显示在html上
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号