后台JS报错

2016-07-07 15:14 来源:www.chinab4c.com 作者:ecshop专家

因为自己修改的前台模版需要用到jQuery,然而ECShop transport.js与jQuery冲突,按照网络上修复冲突的方法修复后,打开后台就出现以下的JS报错。
SCRIPT5022: transport.js/parseResult() error: can't parse to JSON.
{"error":0,"message":"","content":"<li class=\"explode\" name=\"menu\" key=\"20_yun\" id=\"20_yun\">\n \u4e91\u670d\u52a1\u4e2d\u5fc3<ul><li class=\"menu-item\"><a href=\"cloud.php?act=check_ver&ent_id&admin_url&shop_url&certificate_id&sess_id&release&token\" target=\"main-frame\">\u67e5\u770b\u6700\u65b0\u7248\u672c\u53ca\u6fc0\u6d3b<\/a><\/li><li class=\"menu-item\"><a href=\"cloud.php?act=sms&ent_id&ent_ac&t&admin_url&sess_id&certificate_id&token\" target=\"main-frame\">\u77ed\u4fe1\u670d\u52a1<\/a><\/li><li class=\"menu-item\"><a href=\"cloud.php?act=tools&shop_url\" target=\"main-frame\">\u5546\u5bb6\u5de5\u5177<\/a><\/li><li class=\"menu-item\"><a href=\"cloud.php?act=safety_testing&admin_url&certificate_id&sess_id&token\" target=\"main-frame\">\u5b89\u5168\u68c0\u6d4b(\u6d4b\u8bd5)<\/a><\/li><li class=\"menu-item\"><a href=\"cloud.php?act=shops&type&source=pre_ec_bind&shop_url&token&csone_token&node_id\" target=\"main-frame\">CSone\u670d\u52a1<\/a><\/li><\/ul>\n <\/li>"}
transport.js, 行412 字符11
SCRIPT5022: transport.js/parseResult() error: can't parse to JSON.
{"error":0,"message":"","content":"<liclass=\"cloud_close\">\u4e91\u63d0\u9192\u672a\u6fc0\u6d3b<a href=\"cloud.php?act=check_ver&ent_id&admin_url&shop_url&certificate_id&sess_id&release&token\" > \u70b9\u51fb\u6fc0\u6d3b<\/a><img onclick=\"cloud_close(2)\" src=\"images\/no.gif\"><\/li>"}
transport.js, 行412 字符11
SCRIPT5022: transport.js/parseResult() error: can't parse to JSON.

{"error":1,"message":0,"content":""}
transport.js, 行412 字符11
是修复出了问题吗?有没有更好的修复?

回答:
JQ的兼容性。你无法确定啥时候处理好。官方也解决不了。

我跟楼主一样啊