分享一则javascript 调试技巧
时间:2021-06-06 08:46:25|栏目:JavaScript代码|点击: 次
不用alert,用console.log()
复制代码 代码如下:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function showLog(message){
console.log(message);
}
function test(name){
showLog(name);
}
test("hello");
</script>
</head>
<body>
</body>
</html>
以上算是一个个人心得,这里分享给大家,小伙伴们试试看。
上一篇:js实现年月日表单三级联动
栏 目:JavaScript代码
本文标题:分享一则javascript 调试技巧
本文地址:http://www.codeinn.net/misctech/136363.html






