(index):11 Uncaught ReferenceError

(index):11 Uncaught ReferenceError: testAlert is not defined
    at HTMLInputElement.onclick ((index):11)

解決:chrome

if後面漏了{。 要從chrome控制檯看。不然很難定位。 Uncaught SyntaxError: Unexpected token else main.js:41code

相關文章
相關標籤/搜索