办证网址
深圳经济特区居住证服务平台 https://www.szjzz.gov.cn/ 证件数码照片质量检测中心 ht […]
人生没有原因,闯出一路精彩
深圳经济特区居住证服务平台 https://www.szjzz.gov.cn/ 证件数码照片质量检测中心 ht […]
1 |
var timestamp=new Date().getTime(); |
http://barcode-coder.com/en/barcode-jquery-plugin-201.h […]
1 2 3 4 5 6 7 8 9 10 11 |
// 方法一,IE6,IE8,FireFox,Chrome 测试通过 document.getElementById("the_id").scrollIntoView(); // 方法二,IE6,IE8,FireFox测试通过, Chrome貌似第一次行, 再一次好像不行 window.location.hash = "#the_id"; // 方法三, jq实现,没试 var _targetTop = $('#the_id').offset().top;//获取位置 jQuery("html,body").animate({scrollTop:_targetTop},1000);//跳转 $("html,body").animate({scrollTop: $("#the_id").offset().top}, 1000)//合成一句完成 |
1 2 3 4 5 6 7 8 9 10 11 |
var the_ele = document.getElementById("the_id"); // 非IE, 注意逗号后有空格,即140前面有空格 if(the_ele .style.color == "rgb(255, 140, 0)"){ // your code here } // IE6-8, 注意a-f的十六进制要小写 if(the_ele .style.color == "#ff8c00"){ // your code here } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
//创建: var arr = new Array(); var arr = new Array("abc", "def", 1, 5, 9); var arr = ["abc", "def", 1, 5, 9]; //遍历: for (i in arr){ alert("value=" + arr[i]); } |
判断数组是否包含指定元素时,网上的一个方法是 […]