摘要: 常用1.sort()方法:var a = [5,29,23,37,27,44];function sortNum(a,b){ return a-b; }alert(a.sort(sortNum));若 a 小于 b,在排序后的数组中 a 应该出现在 b 之前,则返回一个小... 阅读全文
posted @ 2014-09-06 16:23 SLEBEE 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 网页内操纵iframe内元素:iframe.contentWindow.document.getElementById(id);iframe网页元素操纵外部网页元素:iframe内 window.parent.getElementById(id);多重嵌套的情况下 window.top 表示获取的是... 阅读全文
posted @ 2014-09-06 15:46 SLEBEE 阅读(197) 评论(0) 推荐(0) 编辑