Easyui-combobox的‘getValue’,‘getText’两者区别
<td>Status:<input class="easyui-combobox" name="SStatus" id="SStatus" style="width: 120px; height: 25px; " data-options="valueField: 'label',
data: [{
label:'1' ,
value :'ongoing'
},
{
label :'2' ,
value :'closed'
}]" />
</td>
其他的表达形式为
<td>Status:<input class="easyui-combobox" name="SStatus"id="SStatus"style="width:120px;height: 25px;"/></td>
<scrpit>
var Status = $('#SStatus').combobox('getValue');//得到的值为数值1或2
var Status = $('#SStatus').combobox('getValue');//得到的是ongoing或closed
$('#SPIC').combobox({
url: '',//运行的路径
valueField: 'Value',
textField: 'Text',
editable: true,
mode: 'remote',
loadFilter: function (data) { return data.rows; },
});
</scrpit>