摘要: 例如要得到:20150610125348,可以这么做:function CurentTime() { var now = new Date(); var year = now.getFullYear(); //年 var mo... 阅读全文
posted @ 2015-06-10 13:17 Coca-code 阅读(206) 评论(0) 推荐(0)
摘要: var a = 1;var b = 8; a = a ^ b; b = a ^ b; a = b ^ a;alert("a的值为: " + a);alert("b的值为: " + b); //a:8,b:1 阅读全文
posted @ 2015-06-10 12:48 Coca-code 阅读(166) 评论(0) 推荐(0)
摘要: 一. 二维数组1.var table = new Array(10);for(var i = 0,len = table.length;i b) return 1; return 0;});alert(newArr); // 不区分大小写排序5. concatvar arr = [1,2,3]... 阅读全文
posted @ 2015-06-10 12:02 Coca-code 阅读(204) 评论(0) 推荐(0)