Javascript 未捕获引用错误:左侧表达式无效
我有以下错误5次: 未捕获引用错误:中的左侧表达式无效 后缀运算 你们知道为什么吗?谢谢你的帮助Javascript 未捕获引用错误:左侧表达式无效,javascript,Javascript,我有以下错误5次: 未捕获引用错误:中的左侧表达式无效 后缀运算 你们知道为什么吗?谢谢你的帮助 toQueryParams: function (string, separator) { var match = _(string).strip().match(/([^?#]*)(#.*)?$/); if (!match) return {}; return _(match[1].split(separator || '&')).reduce(function (hash,
toQueryParams: function (string, separator) {
var match = _(string).strip().match(/([^?#]*)(#.*)?$/);
if (!match) return {};
return _(match[1].split(separator || '&')).reduce(function (hash, pair) {
if ((pair = pair.split('='))[0]) {
var key = decodeURIComponent(pair.shift()),
value = pair.length > 1 ? pair.join('=') : pair[0];
if (value != undefined) value = decodeURIComponent(value);
if (key in hash) {
if (!_.isArray(hash[key])) hash[key] = [hash[key]];
hash[key].push(value);
}
// Uncaught ReferenceError: Invalid left - hand side expression in postfix operation
// Uncaught ReferenceError: Invalid left - hand side expression in postfix operation
// Uncaught ReferenceError: Invalid left - hand side expression in postfix operation
// Uncaught ReferenceError: Invalid left - hand side expression in postfix operation
// Uncaught ReferenceError: Invalid left - hand side expression in postfix operation
else hash[key] = value;
}
return hash;
}, {});
},
我知道发生了什么。不是这段代码,而是在尝试使用旧版本的JSMin缩小underline.js时
我现在将转到uglyfier。请创建一个演示。它是一个非常大的JS文件的一部分。我会想念你的。。。我会看看我能做些什么。我已经更新了代码,尝试了一些东西,但在生产中不起作用。