![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
wuyongdetainxia
这个作者很懒,什么都没留下…
展开
-
js实现跳转
第一种: window.location.href="login.jsp?backurl="+window.location.href; 第二种: window.history.back(-1);第三种: window.navigate("top.jsp");第四种: self.location='top.htm';...2012-02-24 15:00:04 · 85 阅读 · 0 评论 -
js中的一些函数
[color=red][b]1.去除前后的空格[/b][/color]strip:function(){ return this.replace(/^\s+/, '').replace(/\s+$/, ''); } [color=red][b]2.判断中文的长度[/b][/color]String(val).replace(/[^\x00-\xff]$/g,"...2012-03-12 14:32:26 · 68 阅读 · 0 评论 -
js中的setTimeout实例
[code="java"]//简单的setTimeout的一个时钟function showTime(){ var today = new Date(); var h = today.getHours(), m =today.getMinutes(), s = today.getSeconds(); //追加0的判断...2012-03-12 14:48:20 · 117 阅读 · 0 评论