select1.options.length= 0 ;
清空
<ul id="ul">
<li>111</li>
<li>111</li>
</ul>
var ul = $("#ul");
ul.html("");
select1.options.length= 0 ;
清空
<ul id="ul">
<li>111</li>
<li>111</li>
</ul>
var ul = $("#ul");
ul.html("");
转载于:https://www.cnblogs.com/xiaoliu66007/p/4974920.html