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 编写一个二十一点程序,但在我的代码中查找错误时遇到问题。当我在 Chrome 中调试时,当我单击每个按钮时,它会告诉我相应的功能未定义。我似乎找不到错误,所以希望你们都能找到!先感谢您。
那是因为你的代码中有语法错误,所以脚本标签中的代码都没有被执行。
您缺少最后一个函数中}最后一个if语句的结束。
}
if