creator 2.1.3 iOS 10 会出现 Cannot declare a const variable twice 错误,目前已知这是ios10的bug,打包混淆后会出现
function y(e, t = !1) {
const i = (t = t || !1) ? “?”: “”,
o = [];
for (const t in e) if (e.hasOwnProperty(t)) {
const i = e[t];
if (!i) continue;
i.constructor === Array ? i.forEach(e = >{
o.push(encodeURIComponent(t) + “[]=” + encodeURIComponent(e));
}) : o.push(encodeURIComponent(t) + “=” + encodeURIComponent(i));
}
return o.length ? i + o.join("&") : “”;
}
const t 和外部的t冲突,所以报错。 这个问题要怎么解决,打包过程是引擎做的,生成的文件也加密了没法修改。