忙忙碌碌网
搜索
首页
编程语言
正文
关于encodeURI和encodeURIComponent的使用场景
11
次阅读
没有评论
encodeURI:适用于url跳转时。
encodeURIComponent:适用于url作为参数传递时。
tips:当url作为参数传递时如果没有用encodeURIComponent进行编码,会造成传递时url中的特殊字符丢失。
正文完
0
java字符串三种空字符串null、new String()、””的区别
上一篇
spring boot security ajax_springboot集成security详解
下一篇