![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaSrcipt
Chase23Wade
这个作者很懒,什么都没留下…
展开
-
获取时间和If..else的使用
<html> <body> <script type="text/javascript"> var d = new Date() var time = d.getHours() var m = d.getMinutes(); var s = d.getSeconds(); if (m<10) { document.write(time+...原创 2011-04-30 10:11:55 · 174 阅读 · 0 评论 -
显示一个电子时钟
<html> <head> <script type="text/javascript"> function startTime() { var today=new Date() var h=today.getHours() var m=today.getMinutes() var s=today.getSeconds() // add a z...原创 2011-04-30 11:30:46 · 204 阅读 · 0 评论 -
JavaScript正则表达式
<html> <head> <title>JavaScript RegExp</title> <script type="text/javascript"> /********************** /* var reg = /test/; var str = 'testString'; v...原创 2011-05-11 17:11:49 · 95 阅读 · 0 评论