Tag: 解析错误

jQuery 1.5.1打破了所有ajax()调用

当我升级到jQuery 1.5.1(或1.5)时,我站点中的所有ajax()调用都会在错误选项函数中生成“parserror”。 还有一个脚本错误 Uncaught SyntaxError: Unexpected token : jquery-1.5.1.min.js:16 使用1.4.4,该站点一直在运行w / o错误。 这是来自其中一个ajax()调用的代码。 $.ajax({ url: ‘/CustomerGroup/Get’, type: ‘POST’, contentType: ‘application/json; charset=utf-8’, dataType: ‘json’, success: function (grp) { if (grp != null) { clear(); group = grp; load(grp); } else{ showError( ‘Customer Group’, ‘Whoops, error getting customer group information. Please contact support@myorg.com and include your username […]