radio 控件问题 无法获取值
var art = this.data.rdLateMarry ;
var arx = this.form.get("rdLateMarry").getTextData().text[0];
都是报错 undined
VM6338:198 TypeError: Cannot read properties of undefined (reading 'rdLateMarry')
at getLeaveDays (<anonymous>:152:33)
at MWF.Macro.scriptSpace.f_0 (<anonymous>:9:19)
at Object.exec (<anonymous>:1:58774)
at Object.fire (<anonymous>:1:59896)
at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
at Object.<anonymous> (<anonymous>:1:205671)
at Object.<anonymous> (<anonymous>:1:181584)
at Array.forEach (<anonymous>)
at Function.forEach (mootools-1.6.0_all.js:235:1)
at Array.each (mootools-1.6.0_all.js:345:1) 在哪里用的,看起来是上下文根不对吧,this可能不对 论坛管理员 发表于 2023-3-20 16:53
在哪里用的,看起来是上下文根不对吧,this可能不对
是在一个表单下的 calendar 控件的 change 事件 现在就是 data.或者 form.get 都不可以 论坛管理员 发表于 2023-3-20 16:53
在哪里用的,看起来是上下文根不对吧,this可能不对
file:///C:/Users/dev001/Desktop/1679303139443.jpg 这里您fuction里面this就不对了,所以取不到
页:
[1]