添加option问题

var option = new Option(value ,text);   //创建的方法  ,还有一个creatElement方法
                option.setAttribute("lat",centerLat);
                option.setAttribute("lng",centerLng);
                option.setAttribute("zoom",zoom);
      areaSelect.options.add(option);  //添加的方法 , 还有areaSelect.options[i] = option 方法,或 appendChild方法

但是 使用 new option 的创建方法 和 select.options.add() 方法 在ie中很正常。

原文地址:https://www.cnblogs.com/zsk526/p/1871636.html