摘要: 之前在一个项目中,一个很简单的查询页面,曾发现一个bug,从文本框中取得的日期字符串,天数加1,然后通过传给后台,在chrome上正常,但在ie上无法运行,以下是改进后的代码。 html: scripts: var startDate = $('#txtStartDate').val(); startDate = new Date(startDate.replace(/-/g, '/')); 阅读全文
posted @ 2013-07-05 17:29 cysean 阅读(285) 评论(0) 推荐(0)