博 之 文

以 拼 搏 设 计 梦 想 , 以 恒 心 编 程 明 天
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年2月7日

摘要: 1、 window.location.href = "aa.aspx?id=" + id;alert(window.location.search); //这样是弹出所有值,再根据里面看哪个符号。分割下就取到你传递的值的例如 我传递过来的弹出的是"dsajkhh%#id=3"那么我要取3 值var a = window.location.search.split('='); alert(a[1]); //取等于的右边值,a就是 3了 阅读全文

posted @ 2012-02-07 18:14 IsNull_Soft 阅读(403) 评论(0) 推荐(0) 编辑

摘要: 1.当前系统区域设置格式(toLocaleDateString和toLocaleTimeString) 例子:(new Date()).toLocaleDateString() + " " + (new Date()).toLocaleTimeString() 结果: 2008年1月29日 16:13:112.普通字符串(toDateString和toTimeString) 例子: (new Date()).toDateString() + " " + (new Date()).toTimeString() 结果:Tue Jan 29 2008 16:1 阅读全文

posted @ 2012-02-07 16:21 IsNull_Soft 阅读(504) 评论(0) 推荐(0) 编辑