前端之家收集整理的这篇文章主要介绍了
JavaScript程序设计之JS调试,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
本文主要通过一个加法器,介绍JS如何调试。先上代码:
效果:

test.html:
<
Meta charset="UTF-8">
计算器
@H_403_14@
计算器
@H_403_14@
<input type="text" id="num1">
+
<input type="text" id="num2">
=
<span id="result">
<button id="add">计算