新登录系统后,没做其它操作直接“在线用户”,弹窗报错“Cannot read property 'prototype' of undefined”
叉掉再点“在线用户”,又弹窗报错报错,内容如下
Unable to process binding "component: function (){return {name:'$model/UI2/system/components/justep/windowContainer/windowContainer'} }" Message: Mismatched anonymous define() module: function (require) { var $ = require("jquery"); var justep = require("$UI/system/lib/justep"); var biz = require("$UI/system/lib/biz"); var Model = function() { this.callParent(); }; Model.prototype.mainDataCustomRefresh = function(event) { var options = { dataType: "json", url: require.toUrl("$UI/system/service/common/queryOnlineUsers.j") }; var result = biz.Request.sendHttpRequest(options); var number = 0; if (biz.Request.isSuccess(result) && result.responseJSON.flag){ var data = biz.Request.getData(result); event.source.loadData(data); event.source.first(); number = data.rows.length; }else{ event.source.clear(); justep.Util.confirm("更新在线用户数失败!"); } $(this.getElementByXid("number")).text(number); }; return Model; } http://requirejs.org/docs/errors.html#mismatch
复制代码
经常出现,有时又正常,困惑!!
弹窗报错“Cannot read property 'prototype' of undefined”
这个错误会无固定无规律的出现在不同功能块上,出错了就点不出来了,要清浏览器缓存,关闭浏览器,要折腾很多次才不会出现,但一会又出现在别的功能上了
at Function.st.error (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:45510)
at st.tokenize (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:51381)
at st.select (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:51651)
at Function.st (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:35672)
at h.fn.extend.find (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:53635)
at h.fn.init (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:54206)
at h (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:30874)
at n.extend.getElementByXid (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:266234)
at n.extend._getViewComponentByXid (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:264987)
at n.extend.getComponent (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:264232) core.min.js:36
at Function.st.error (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:45510)
at st.tokenize (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:51381)
at st.select (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:51651)
at Function.st (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:35672)
at h.fn.extend.find (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:53635)
at h.fn.init (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:54206)
at h (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:30874)
at n.extend.getElementByXid (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:266234)
at n.extend._getViewComponentByXid (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:264987)
at n.extend.getComponent (http://192.168.0.202:8080/x5/$v5373414c1abc495f8cf9dc8d1507e940$lzh_CN$sdesktop$d/UI2/system/core.min.js:36:264232) core.min.js:36
'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead.
TypeError: Cannot read property 'prototype' of undefined
at :8080/x5/UI2/v_c7e866c2a2bf4e309d4407a5f63d8c3bl_zh_CNs_d_m/ecmp/index/dynamic/search.js:46
at Object.context.execCb (require.2.1.10.js:2158)
at Object.Module.check (require.2.1.10.js:1180)
at Object.<anonymous> (require.2.1.10.js:1433)
at require.2.1.10.js:370
at require.2.1.10.js:1476
at each (require.2.1.10.js:295)
at Object.Module.emit (require.2.1.10.js:1475)
at Object.Module.check (require.2.1.10.js:1236)
at Object.Module.enable (require.2.1.10.js:1463)
core.min.js:12140 Error: __justepClientErrorStart__{"code":"JUSTEP230103","message":"加载/x5/UI2/v_c7e866c2a2bf4e309d4407a5f63d8c3bl_zh_CNs_d_m/ecmp/index/dynamic/search.w?$pageType=model&$noCompile=true出错"}__justepClientErrorEnd__
at Object.r.create (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:9633:24)
at Object.<anonymous> (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:12086:34)
at f (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2647:46)
at Object.l.fireWith (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2701:106)
at Object.<anonymous> (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2734:144)
at f (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2647:46)
at Object.l.fireWith (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2701:106)
at Object.i.(anonymous function) [as reject] (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:2756:44)
at Object.errback (http://localhost:8080/x5/UI2/v_1c57b131f12647d783a9a2a17eae8400l_zh_CNs_d_m/system/core.min.js:11929:23)
at http://localhost:8080/x5/UI2/v_ae50785662f24bfca84ffbb4c71e633bl_zh_CNs_d_m/system/lib/require/require.2.1.10.js:370:23
core.min.js:12143 Uncaught Error: __justepClientErrorStart__{"code":"JUSTEP230103","message":"加载/x5/UI2/v_c7e866c2a2bf4e309d4407a5f63d8c3bl_zh_CNs_d_m/ecmp/index/dynamic/search.w?$pageType=model&$noCompile=true出错"}__justepClientErrorEnd__
http://localhost:35729/livereload.js?_=1452497827305 Failed to load resource: net::ERR_CONNECTION_REFUSED