帆软 控件内容 清除
对于帆软界面按F12 得到对应生成的HTML
<div class="ui-state-enabled fr-form-btn-group fr-group-box fr-gridlayout" widgetname="P_SAFETY" style="width: 151px; height: 21px; overflow: hidden; position: absolute; left: 619px; top: 15px;"><span class="fr-group-span" style="text-align: left; left: 0px; top: 0px; width: 70.5px; height: 19px; position: absolute;"><div class="ui-state-enabled" style="height: auto; width: auto;"><span class="x-text fr-widget-click fr-radio-radiooff" style="padding-top: 1px; font-size: 12px; display: inline-block;">无预警</span></div></span><span class="fr-group-span" style="text-align: left; left: 75.5px; top: 0px; width: 70.5px; height: 19px; position: absolute;"><div class="ui-state-enabled" style="height: auto; width: auto;"><span class="x-text fr-widget-click fr-radio-radiooff" style="padding-top: 1px; font-size: 12px; display: inline-block;">库存预警</span></div></span></div>
我们找到控件的名称代码
widgetname="P_SAFETY"
获取控件信息
var xxID = this.options.form.getWidgetByName("P_SAFETY");
得到之后清除控件
xxID.reset();
.
.
.
泛用版清空方式代码
$.each(this.options.form.name_widgets,function(i,item){ if (item.options.type !=='label') {item.setValue();item.setText();} });
血肉苦弱机械飞升 :痛苦预示着超脱
本文来自博客园,作者:血肉苦弱机械飞升,转载请注明原文链接:https://www.cnblogs.com/supperlhg/p/8252271.html