组件赋值

组件赋值:
self.getField("xxx") --> $("#xxx")
self.getField("xxx") --> $("#xxx")
self.getFieldValue("xxx") --> $("#xxx").val();
self.getFieldValue("xxx") --> $("#xxx").val();
获取页面F7元素当前的值:
$("#xxx").shrPromptBox('getValue');
设置页面F7元素的值:
$("#xxx").shrPromptBox('setValue',{id:"xxx",number:"xxx",name:"xxx",...});
设置选择框默认值:
$("#xxx").shrSelect("setValue","001");
获取选择框的值:
$("#xxx").shrSelect("getValue").value;
设置时间默认值:
$("#xxx").val(new Date().format("yyyy-MM-dd"));
设置文本框默认值:
$('#xxx').shrTextField("setValue","培训课程");
选择框设置默认值:
$("#xxx").shrCheckbox("check");
设置数字:
$('#xxx').shrNumberField("getValue");
获取时间:
that.getField("xxx").shrDatePicker("getValue");
设置时间:
that.getField("xxx").shrDatePicker("setValue",new Date().format("yyyy-MM-dd"));
$("#xxx").shrDatePicker("setValue",new Date().format("yyyy-MM-dd")
组件赋值
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



