TypeError: console.log(…) is not a function

console.log()
(function(){})

不加分号的问题,正确写法应该是

console.log();
(function(){})

原因分析: https://stackoverflow.com/questions/31013221/typeerror-console-log-is-not-a-function/31013390

posted @ 2018-07-16 01:09  五个唔  阅读(1170)  评论(0编辑  收藏  举报