直接给出jsDebug.js的代码。
再要调试的页面添加引用
<script type="text/javascript" src="js/jsDebug.js"></script>
然后设置调试属性为true
<script type="text/javascript">
jsDebug.debug=true;
</script>
这样就可以把错误直接输出了,是不是稍为方便呢?呵呵~~但愿对你有帮助。
此版本只是1.0的,以后会有更加丰富的功能加入,大家一起努力。
添加下载:/Files/raylovelc/jsDebug.rar