本文主要是介绍combotree下拉框多选,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
var dataJson = "[";
dataJson += "{\"id\":\"all\",\"text\":\"全部\",\"checked\":true" + ",\"children\":["
dataJson += "{\"id\":\"PM25\",\"text\":\"PM2.5\"},"
dataJson += "{\"id\":\"NO2\",\"text\":\"NOX\"},"
dataJson += "{\"id\":\"TEMPERATURE\",\"text\":\"温度\"},"
dataJson += "{\"id\":\"HUMIDITY\",\"text\":\"湿度\"}]"
dataJson += "}]";
var dateJson = $.parseJSON(dataJson);
$("#MicroMultiselect").combotree({
multiple: true,
data: dateJson,
valueField: 'id',
textField: 'text',
onSelect: function (item) {
}
});
这篇关于combotree下拉框多选的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!