js 동적 으로 select 탭 을 추가 하 는 option

956 단어 webgis전단 개발
js  :

var featureLayerURLTest=[["http://192.168.15.174:6080/arcgis/rest/services/Sample/GQYDGH/FeatureServer/0","   1"]];
function createSelectOption(featureLayerURLTest){
    var _html="";
    for(var _i=0;_i"+featureLayerURLTest[_i][1]+"";
    }
    $("#featureLayerOptions").append(_html);
    var html=$("#featureLayerOptions");
    //console.log(html);
}

$(function(){
    createSelectOption(featureLayerURLTest);
});

html  :
:

좋은 웹페이지 즐겨찾기