专题文章
时长:00:00更新时间:2020-11-27 21:22:45
js获取select默认选中的Option并不是当前选中值_javascript技巧:js函数方法: 代码如下: function getDefaultSelectedOption(selectId, valIfNull) { var dom, selectId = selectId.replace(/^#/, ''), opts; try { opts = document.getElementById(selectId).g
查看详情