為什么報 Uncaught TypeError: console.log(...) is not a function?而另兩種方式可以var x = { fn: function () { console.log(this)// !function () {// console.log(this)// }();//正確 (function () { console.log(this); })();//Uncaught TypeError: console.log(...) is not a function } }; (function () { console.log(this); })();//正確 x.fn()
一個奇怪的語法錯誤
慕的地6264312
2018-10-12 13:11:47
