标签:function split refresh append nbsp null lse app fun
function JizuHao(source) { var data = source[0].SYSTEM; if (data != null) { var arr = data.split(",") var ress = ""; for (i = 0; i < arr.length; i++) { ress += "<option value=\"" + arr[i] + "\">" + arr[i] + "</option>"; } $("#id_select").empty(); $("#id_select").selectpicker(‘render‘);//添加 $("#id_select").selectpicker(‘refresh‘);//添加 $("#id_select").append(ress); $("#id_select").selectpicker(‘render‘); $("#id_select").selectpicker(‘refresh‘); } else { $("#id_select").empty(); $("#id_select").selectpicker(‘render‘); $("#id_select").selectpicker(‘refresh‘); } }
标签:function split refresh append nbsp null lse app fun
原文地址:https://www.cnblogs.com/yuanmo/p/12656387.html