當(dāng)前位置:首頁(yè)
> htmlselect刪除選項(xiàng)
htmlselect刪除選項(xiàng)(html刪除無(wú)用的js和css)
if typeof selectObj != #39object#39 selectObj = documentgetElementByIdselectObj 原有選項(xiàng)計(jì)數(shù) var len = for var i=0 i lt len i++ 移除當(dāng)前選項(xiàng) selectObj;思路通過(guò)for循環(huán)判斷...