摘要: 在js中有三个url编码函数:escape,encodeURI, encodeURIComponent。escape引人的最早,它会将unicode字符编码成%uXXXX,而其它两个函数会先得到utf8结果然后%xx%yy%zz我们应该使用encodeURI和encodeURIComponent而不是escape,新的总是好的嘛:)encodeURI和encodeURIComponent的区别是前... 阅读全文
posted @ 2012-03-06 09:53 队长 阅读(382) 评论(0) 推荐(0) 编辑