分类目录

链接

2019 年 1 月
 123456
78910111213
14151617181920
21222324252627
28293031  

近期文章

热门标签

新人福利,免费薅羊毛

html select optgroup

<select id="manager" name="manager" onchange="document.getElementById('hierLabelDiv').style.display = this.options[this.selectedIndex].value=='Other' ? 'block' : 'none'; document.getElementById('ownMgrElm').disabled = this.selectedIndex == 0 ? 'true' : ''; if (this.selectedIndex == 0) document.getElementById('ownMgrElm').checked = ''">     <option value="">--None--</option>     <optgroup label="Standard User Fields">         <option value="Mana...

Others 暂无评论 阅读(329)

js数组排序

  Array.prototype.sortBy = function (attr, rev) {     return this.sort(sortByKey(attr, rev)); }        var sortByKey = function (attr, rev) {     //第二个参数没有传递 默认升序排列     if (rev == undefined) {         rev = 1;     } else {         rev = (rev) ? 1 : -1;     }       return function (a, b) {         a = a[attr].toLowerCase();         b = b[attr].toLowerCase();         if (a < b) {             return rev * -1;         }         if (a > b) {             r...

前端 暂无评论 阅读(331)