零散的錯誤問題
現象
瀏覽器調試中出現的提示,應該是是代碼中的}沒有閉合導致,
這樣ajax中的success函數中的代碼沒有顯示出效果
調試信息
Uncaught SyntaxError: Unexpected token }
at DOMEval (jquery-3.3.1.js:111)
at domManip (jquery-3.3.1.js:5762)
at jQuery.fn.init.append (jquery-3.3.1.js:5898)
at jQuery.fn.init.<anonymous> (jquery-3.3.1.js:5992)
at access (jquery-3.3.1.js:3939)
at jQuery.fn.init.html (jquery-3.3.1.js:5959)
at Object.success (include.js:3)
at fire (jquery-3.3.1.js:3268)
at Object.fireWith [as resolveWith] (jquery-3.3.1.js:3398)
at done (jquery-3.3.1.js:9305)
解決:

這里刪掉})就好了,粗心了

浙公網安備 33010602011771號