分享一则javascript 调试技巧

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

分享一则javascript 调试技巧

  2020-05-13 我要评论

不用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>

以上算是一个个人心得,这里分享给大家,小伙伴们试试看。

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们