欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

分享一則javascript 調(diào)試技巧

 更新時(shí)間:2015年01月02日 11:54:53   投稿:hebedich  
這篇文章主要分享了一則javascript 調(diào)試技巧,需要的朋友可以參考下

不用alert,用console.log()

復(fù)制代碼 代碼如下:

<!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>

以上算是一個(gè)個(gè)人心得,這里分享給大家,小伙伴們?cè)囋嚳础?/p>

相關(guān)文章

最新評(píng)論