![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQuery
文章平均质量分 69
shyaideguo
这个作者很懒,什么都没留下…
展开
-
js扩展方法
js没有delete方法,但是js有截取和拼接的方法,我们可以通过已有的方法实现js的删除方法Array.prototype.del = function(n) { if (n return this; }else{ return this.slice(0, n).concat(this.slice(n转载 2014-11-12 10:53:48 · 467 阅读 · 0 评论 -
javascript:window.close()在chrome,Firefox下失效问题解决方法
window.close(),一看就知道是用来关闭浏览器窗口的方法。W3CSchool对该方法的解释如下:方法 close() 将关闭有 window 指定的顶层浏览器窗口。某个窗口可以通过调用 self.close() 或只调用 close() 来关闭其自身。只有通过 JavaScript 代码打开的窗口才能够由 JavaScript 代码关闭。这阻止了恶意的脚本终止用户的浏览器。转载 2014-11-12 11:03:33 · 757 阅读 · 0 评论 -
按钮倒计时
jQuery代码:……// 主函数,执行倒计时任务function countSeconds() {// 倒计时秒数var secs = 60;var wait = secs * 1000;var sendButton = $('#send_button');sendButton.html("请等待" + secs + "秒");send转载 2014-10-20 10:37:30 · 333 阅读 · 0 评论