忽然有人问我如何替换"2004-9-6" -> "2004-09-06"。
摘要:
想了一会,发现技能放久了不用会生锈地。var theDateString = "2004-9-6"; theDateString = theDateString.replace(/-(\d{1})(?=-|$)/g, "-0$1"); 阅读全文
posted @ 2004-09-29 16:19 阮 阅读(441) 评论(0) 推荐(0) 编辑
A scientist builds in order to learn; an engineer learns in order to build.
posted @ 2004-09-29 16:19 阮 阅读(441) 评论(0) 推荐(0) 编辑
posted @ 2004-09-29 12:10 阮 阅读(1331) 评论(0) 推荐(0) 编辑