【发布时间】:2015-03-31 08:12:13
【问题描述】:
我有一个启动小程序的应用程序。当我尝试点击 Chrome 中的登录按钮时,出现以下错误
applet.htm:54 Uncaught TypeError: undefined is not a function
engine.js:1262 console.trace()
engine.js:1262 dwr.engine._debug
engine.js:1263 Error: TypeError, undefined is not a function
代码 applet.htm 第 54 行(未捕获类型错误:未定义不是函数):
function initApplet() {
while(ctiApplet.isActive()==false) {
}
engine.js 的第 1257 - 1281 行
/** @private Used internally when some message needs to get to the programmer */
dwr.engine._debug = function(message, stacktrace) {
var written = false;
try {
if (window.console) {
if (stacktrace && window.console.trace) window.console.trace();
window.console.log(message);
written = true;
}
else if (window.opera && window.opera.postError) {
window.opera.postError(message);
written = true;
}
}
catch (ex) { /* ignore */ }
if (!written) {
var debug = document.getElementById("dwr-debug");
if (debug) {
var contents = message + "<br/>" + debug.innerHTML;
if (contents.length > 2048) contents = contents.substring(0, 2048);
debug.innerHTML = contents;
}
}
};
真的无法理解为什么它是未定义的。就像它无法控制小程序一样,因此没有意识到它已加载。适用于 IE8。如果有人能对此有所了解。
【问题讨论】:
标签: java javascript google-chrome dwr