今天需要生成一条option记录插入到select,采用dom的方法与先前的方法有所不同...
按DOM方式//使用dom的方法$("floatingFrequencyCode").options.insertBefore(createOption(thestr,"01"),$("floatingFrequencyCode").options[0]);//则需要此方式来生成optinofunctioncreateOption(thetext,thevalue)...{vartheo...
复制链接