您好:
參考,
https://help.fanruan.com/finereport/doc-view-1708.html
當
一般 用 var a=this.getValue(); 取值
那 this.element.children() ,取得元件 與 contentPane.getWidgetByName("anniu") 差異性?
他都可以 使得元件 及 值嗎?
使用範圍:編輯前,初始化 間有差異嗎?
var a=this.getValue();取值是对当前控件有操作才可以取到
contentPane.getWidgetByName("anniu") .getValue();是根据控件名取值,可以不用对控件触发事件就可以,
使用范围是contentPane.getWidgetByName("anniu") .getValue();广,
編輯前事件,两个都可以取到值,
初始化事件,如果是当前控件初始化事件,两个都可以,不是当前控件的话,只有contentPane.getWidgetByName("anniu") .getValue();可以取值,