摘要: 使用 sort() 方法从数值上对数组进行排序。编辑您的代码:查看结果: 10,5,40,25,1000,1 1,5,10,25,40,1000 阅读全文
posted @ 2015-01-13 17:37 紫发少年 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 使用 sort() 方法从字面上对数组进行排序。编辑您的代码:查看结果: George,John,Thomas,James,Adrew,Martin Adrew,George,James,John,Martin,Thomas 阅读全文
posted @ 2015-01-13 17:35 紫发少年 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 使用 join() 方法将数组的所有元素组成一个字符串。编辑您的代码:查看结果: George,John,Thomas George.John.Thomas 阅读全文
posted @ 2015-01-13 17:33 紫发少年 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 使用 concat() 方法来合并两个数组。编辑您的代码:查看结果: George,John,Thomas,James,Adrew,Martin 阅读全文
posted @ 2015-01-13 17:31 紫发少年 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 编辑您的代码:查看结果: Saab Volvo BMW 阅读全文
posted @ 2015-01-13 17:19 紫发少年 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 编辑您的代码: 查看结果: Saab Volvo BMW 阅读全文
posted @ 2015-01-13 17:17 紫发少年 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 显示:当前日期加时间(如:2009-06-12 12:00)function CurentTime() { var now = new Date(); var year = now.getFullYear(); //年 var month = now.getMonth() + 1; //月... 阅读全文
posted @ 2015-01-13 17:15 紫发少年 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //+---------------------------------------------------//| 字符串转成日期类型//| 格式 MM/dd/YYYY MM-dd-YYYY YYYY/MM/dd YYYY-MM-dd//+------------------------------... 阅读全文
posted @ 2015-01-13 17:13 紫发少年 阅读(801) 评论(0) 推荐(0) 编辑
摘要: //+---------------------------------------------------//| 日期时间检查//| 格式为:YYYY-MM-DD HH:MM:SS//+---------------------------------------------------funct... 阅读全文
posted @ 2015-01-13 17:12 紫发少年 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: //+---------------------------------------------------//| 日期合法性验证//| 格式为:YYYY-MM-DD或YYYY/MM/DD//+---------------------------------------------------fu... 阅读全文
posted @ 2015-01-13 17:11 紫发少年 阅读(1669) 评论(0) 推荐(0) 编辑