源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

分享一则javascript 调试技巧

  • 时间:2022-04-04 19:28 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:分享一则javascript 调试技巧
不用alert,用console.log()
[u]复制代码[/u] 代码如下:
<!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>
以上算是一个个人心得,这里分享给大家,小伙伴们试试看。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部