分享一则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>以上算是一个个人心得,这里分享给大家,小伙伴们试试看。
相关推荐
lupeng 2020-11-14
sjcheck 2020-11-10
meylovezn 2020-08-28
owhile 2020-08-18
Francismingren 2020-08-17
pythonclass 2020-07-29
sunzhihaofuture 2020-07-19
爱读书的旅行者 2020-07-07
行吟阁 2020-07-05
tianqi 2020-07-05
行吟阁 2020-07-04
冰蝶 2020-07-04
lyg0 2020-07-04
owhile 2020-07-04
opspider 2020-06-28
lengyu0 2020-06-28
tianqi 2020-06-21
dadaooxx 2020-06-16