1
使用MooTools的我使用的mootools 核心 - 1.4.5.js在的Windows 8地鐵的JavaScript應用程序,當一個嘗試創建應用程序軟件包,我得到了一個錯誤在驗證步:與Windows 8地鐵的JavaScript應用程序
mootools-core-1.4.5.js has JavaScript syntax or other problems.
使用MooTools的我使用的mootools 核心 - 1.4.5.js在的Windows 8地鐵的JavaScript應用程序,當一個嘗試創建應用程序軟件包,我得到了一個錯誤在驗證步:與Windows 8地鐵的JavaScript應用程序
mootools-core-1.4.5.js has JavaScript syntax or other problems.
我發現我工作的解決方案。
我用MooTools的核心-1.4.5-全compat.js我註釋掉這些行:
//Browser.exec = function(text){
// if (!text) return text;
// if (window.execScript){
// window.execScript(text);
// } else {
// var script = document.createElement('script');
// script.setAttribute('type', 'text/javascript');
// script.text = text;
// document.head.appendChild(script);
// document.head.removeChild(script);
// }
// return text;
//};
//String.implement('stripScripts', function(exec){
// var scripts = '';
// var text = this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(all, code){
// scripts += code + '\n';
// return '';
// });
// if (exec === true) Browser.exec(scripts);
// else if (typeOf(exec) == 'function') exec(scripts, text);
// return text;
//});
我們沒有足夠的信息來幫助你。嘗試剝離應用程序的各個部分,直到您擁有最小的可重現示例。一旦你有了,我們將會更好地幫助你。 – mydogisbox
謝謝,我已經找到了解決方案 – Ouadie
好找!這應該也會幫助其他人 – mydogisbox