|
本帖最后由 dwqgdgz 于 2017-11-12 23:32 编辑
main下有多个 windowContainer 组件,这些组件下的窗口都都是能过
Model.prototype.tomessage = function(event){
this.owner.send({return_str: "tomessage"});// 有时报错 owner未定义 是什么原因呢
};
能过以上的代码向 main 发送信息让main执行相关操作的
多次测试发现如果铛铛不能用的情况下就会报错,不登录铛铛就没试过报错的
报错后再打开原来那个子窗口就会提示如下:
Mismatched anonymous define() module: function (require){
require('$model/UI2/system/components/justep/model/model');
require('$model/UI2/system/components/justep/loadingBar/loadingBar');
require('$model/UI2/system/components/justep/button/button');
require('$model/UI2/system/components/justep/list/list');
require('$model/UI2/system/components/bootstrap/row/row');
require('$model/UI2/system/components/justep/panel/child');
require('$model/UI2/system/components/justep/windowDialog/windowDialog');
require('$model/UI2/system/components/justep/messageDialog/messageDialog');
require('$model/UI2/system/components/justep/panel/panel');
require('$model/UI2/system/components/justep/popOver/popOver');
require('$model/UI2/system/components/justep/button/checkbox');
require('$model/UI2/system/components/justep/row/row');
require('$model/UI2/system/components/justep/output/output');
require('$model/UI2/system/components/justep/titleBar/titleBar');
require('$model/UI2/system/components/justep/data/data');
require('$model/UI2/system/components/justep/window/window');
require('$model/UI2/system/components/justep/button/buttonGroup');
var __parent1=require('$model/UI2/system/lib/base/modelBase');
var __parent0=require('$model/UI2/shw/gwc');
var __result = __parent1._extend(__parent0).extend({
constructor:function(contextUrl){
this.__sysParam='true';
this.__contextUrl=contextUrl;
this.__id='';
this.__cid='ceUjYNj';
this._flag_='273411b6057927250996ba337364e8d3';
this.callParent(contextUrl);
var __Data__ = require("$UI/system/components/justep/data/data");new __Data__(this,{"autoLoad":true,"confirmDelete":false,"confirmRefresh":false,"defCols":{"fChoose":{"define":"fChoose","label":"选中","name":"fChoose","relation":"fChoose","type":"String"},"fConsistent":{"define":"fConsistent","label":"描述相符","name":"fConsistent","relation":"fConsistent","rules":{"number":true},"type":"Float"},"fFocusNumber":{"define":"fFocusNumber","label":"关注人数","name":"fFocusNumber","relation":"fFocusNumber","rules":{"integer":true},"type":"Integer"},"fGoodsNumber":{"define":"fGoodsNumber","label":"商品数量","name":"fGoodsNumber","relation":"fGoodsNumber","rules":{"integer":true},"type":"Integer"},"fLevel":{"define":"fLevel","label":"等级","name":"fLevel","relation":"fLevel","rules":{"integer":true},"type":"Integer"},"fService":{"define":"fService","label":"服务态度","name":"fService","relation":"fService","rules":{"number":true},"type":"Float"},"fShopId":{"define":"fShopId","label":"id","name":"fShopId","relation":"fShopId","type":"String"},"fShopImg":{"define":"fShopImg","label":"店
中间都是字段来的,发不了那么长省略...
{"define":"yyyymmdd_begin","name":"yyyymmdd_begin","relation":"yyyymmdd_begin","rules":{"datetime":true},"type":"DateTime"},"yyyymmdd_end":{"define":"yyyymmdd_end","name":"yyyymmdd_end","relation":"yyyymmdd_end","rules":{"datetime":true},"type":"DateTime"},"zt":{"define":"zt","name":"zt","relation":"zt","type":"String"}},"directDelete":false,"events":{"onCustomRefresh":"mssbCustomRefresh"},"idColumn":"ms_id","limit":50,"xid":"mssb"});
new __Data__(this,{"autoLoad":true,"confirmDelete":false,"confirmRefresh":false,"defCols":{"fShopId":{"define":"fShopId","name":"fShopId","relation":"fShopId","type":"String"},"fShopName":{"define":"fShopName","name":"fShopName","relation":"fShopName","type":"String"},"yhj_id":{"define":"yhj_id","name":"yhj_id","relation":"yhj_id","type":"String"},"yhj_je":{"define":"yhj_je","name":"yhj_je","relation":"yhj_je","rules":{"number":true},"type":"Decimal"},"yhj_name":{"define":"yhj_name","name":"yhj_name","relation":"yhj_name","type":"String"},"yhj_use_minje":{"define":"yhj_use_minje","name":"yhj_use_minje","relation":"yhj_use_minje","rules":{"number":true},"type":"Decimal"},"yhj_useid":{"define":"yhj_useid","name":"yhj_useid","relation":"yhj_useid","type":"String"}},"directDelete":false,"events":{},"idColumn":"yhj_useid","limit":-1,"xid":"yhj_use"});
}});
return __result;}
http://requirejs.org/docs/errors.html#mismatch
按确定后是一个空白页面,点别的页面正常,再点回来又提示: Cannot set property 'owner' of undefined
以上情况都是在打包后在公网上运行出现的,开发本机上却没试出这种情况来
|
|