|
本帖最后由 tengzhaoxing 于 2019-12-23 14:29 编辑
续前贴 http://bbs.wex5.com/forum.php?mod=viewthread&tid=215878&extra=
<input bind-ref="$model.commonData.ref("fshoukuanje")" class="form-control" component="$UI/system/components/justep/input/input" oninput="show1(event)" xid="input1" />
oninput事件里绑定show1
如你所说在js里定义
Model.prototype.show1 = function(event){
'use strict';
//当前函数的代码为自动生成,请勿手动修改!!!
//document.getElementById("span14").value = "11111";
//var Msg = document.getElementById("span14").value;
//alert("获取值:"+Msg);
var o=this.getElementByXid("input1");
console.log(o.value);
this.comp('commonData1').setValue("fbiaoqian", o.value, undefined);
};
依然报错:
core.min.js:71 ReferenceError: show1 is not defined at HTMLInputElement.oninput (index.w?device=m&activityId=:1)m @ core.min.js:71dispatch @ core.min.js:71g.handle @ core.min.js:71index.w?device=m&activityId=:1 Uncaught ReferenceError: show1 is not defined at HTMLInputElement.oninput (index.w?device=m&activityId=:1)
请问该如何解释,到底该如何定义才能被识别
|
|