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'); } }