标签:append sel value color ice form == ret div
1.代码如下
function initializeSelect(data) { var area = $("#ServiceName"); area.find("option").remove(); if(data.length==0){ return; } $.each(data,function(i,v){ var option = $( ‘<option value="‘ + v.value + ‘">‘ + v.name + ‘</option>‘); $("#ServiceName").append(option); }); }
标签:append sel value color ice form == ret div
原文地址:https://www.cnblogs.com/leolzi/p/10594915.html