/eas_crm_dayi/WebContent/ecp/page/template/EntityList.js 基础脚本
/eas_crm_dayi/WebContent/brandmarket/page/matchreply/matchreply.js自己写的脚本
EntityList.js中有doAdd: function(event){};方法
现在需要进行判断后才确定是否调用该方法
故在matchreply.js
var matchreply=
{ checkCount:function(){
if(){}
else{
EntityListdoAdd();
}
}
}
调用该方法时,发现报错;
折腾半天 最后才发现doAdd()中的event和checkCount()不同一个event
没办法直接调用该方法。
故只能doAdd()方法内容直接写在else后面,并在 checkCount:function(event){}
解决
ps:其实估计可以在matchreply.js中定义个全局变量接event不知道能不能解决
/eas_crm_dayi/WebContent/brandmarket/page/matchreply/matchreply.js自己写的脚本
EntityList.js中有doAdd: function(event){};方法
现在需要进行判断后才确定是否调用该方法
故在matchreply.js
var matchreply=
{ checkCount:function(){
if(){}
else{
EntityListdoAdd();
}
}
}
调用该方法时,发现报错;
折腾半天 最后才发现doAdd()中的event和checkCount()不同一个event
没办法直接调用该方法。
故只能doAdd()方法内容直接写在else后面,并在 checkCount:function(event){}
解决
ps:其实估计可以在matchreply.js中定义个全局变量接event不知道能不能解决