分享一则javascript 调试技巧
不用alert,用console.log()
<!DOCTYPEhtml> <html> <head> <scripttype="text/javascript"> functionshowLog(message){ console.log(message); } functiontest(name){ showLog(name); } test("hello"); </script> </head> <body> </body> </html>
以上算是一个个人心得,这里分享给大家,小伙伴们试试看。