随笔分类 - js
摘要:摘自: http://www.phpernote.com/javascript-function/738.html js 屏蔽浏览器事件汇总
阅读全文
摘要:document.oncontextmenu = function(){return false;} 参考链接:js 屏蔽浏览器事件汇总
阅读全文
摘要:js中文网 阮一峰 1.求format“xxxx年xx月xx日 xx:xx”类型的两个日期天数差 2.Date的long类型获取方法 返回自 1970-1-1 00:00:00 UTC (世界标准时间)至今所经过的毫秒数。 3.Date中的parse方法 注:对于YYYY-MM-DD形式的字符串,J
阅读全文
摘要:摘自:http://www.cnblogs.com/ghostwu/p/7464030.html
阅读全文
摘要:var el = document.createElement("a"); document.body.appendChild(el); el.href = url; //url 是你得到的连接 el.target = '_new'; //指定在新窗口打开 el.click(); document.
阅读全文