js
xuhaibobishen
这个作者很懒,什么都没留下…
展开
-
数字千位分隔
//千位分隔符 function cc(s) { s=s.toString(); if (/[^0-9\.]/.test(s)) return s; s = s.replace(/^(\d*)$/, "$1."); s = (s + "00").replace(/(\d*\.\d\d)\d*/, "$1");原创 2015-01-04 15:46:30 · 267 阅读 · 0 评论 -
window.open不被拦截的实现代码
$("#last").click(function(){ var w=window.open(); setTimeout(function(){ w.location="http://www.baidu.com"; }, 1000); return false; });转载 2015-11-27 16:31:02 · 312 阅读 · 0 评论