摘要: function changedate(shijianchuo) { var now = new Date(shijianchuo), y = now.getFullYear(), m = ("0" + (now.getMonth() + 1)).slice(-2), d = ("0" + now. 阅读全文
posted @ 2017-11-23 17:30 符木诗 阅读(1103) 评论(0) 推荐(0)
摘要: 开发时有时候会通过url传递一下文字信息,在ie浏览器下会出现乱码问题。 解决方法:在传递文字信息时通过js escape() 方法对字符串进行编码,然后在接收的使用前再通过使用 unescape() 对 escape() 编码的字符串进行解码。 阅读全文
posted @ 2017-11-21 17:05 符木诗 阅读(933) 评论(0) 推荐(0)