零散的错误问题

现象
浏览器调试中出现的提示,应该是是代码中的}没有闭合导致,

这样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)

解决:

这里删掉})就好了,粗心了

 

posted @ 2018-12-20 16:23  明月0606  阅读(171)  评论(0编辑  收藏  举报