摘要:
Javascript刷新页面的几种方法:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand('Refresh')6 window.navigate(location)7 location.replace(location)8 document.URL=location.href更多关于刷新的知识,可以参考http://www.jb51.net/article/14397.htm 阅读全文
posted @ 2013-12-31 16:49
火光闪耀
阅读(154)
评论(0)
推荐(0)
摘要:
1. 可以给每个参数加上encodeURIComponent(),然后在后台获得参数后用URLDecoder.decode(string, 'utf-8')解码。2. 后台不用解码。 $.ajax({ url : '', type : 'post', contentType: "application/x-www-form-urlencoded; charset=utf-8", data : { ... 阅读全文
posted @ 2013-12-31 16:37
火光闪耀
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号