JSP页面报错:Syntax error, insert "}" to complete MethodBody

我的JSP页面报的Syntax error, insert "}" to complete MethodBody的错
究竟是哪的错呢

 

其实这并不是代码的错,而是JS语法编译的问题,很简单--添加单引号就解决问题了。

原来我是这样写的jQuery

 

posted @ 2017-08-17 18:29  青春不再见  阅读(1208)  评论(0编辑  收藏  举报