惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

博客园 - Good life

香港地铁线路图 经典语录 最新中国象棋运动员技术等级标准及业余棋手晋级办法 关于 mcafee 8.7 更新失败的 解决办法 如何让任务栏右下角里的Windows安全警报不显示 ORA-01036: 非法的变量名/编号 - Good life 去掉创建方式时生成的小箭头及"快捷方式到" - Good life - 博客园 关于“.aspx调用CodeFile(.cs文件)中变量 ”总结 - Good life windows2003 远程桌面“终端服务器超出了最大允许连接数”的解决方案 generic host process for win services 之解决办法 安装程序不能验证 Update.inf 文件的完整性 之解决办法 XP远程桌面mstsc和带参数的mstsc /console的差别 office简繁体转换插件 serv-u 9.3.0.1 注册机 彻底清除微软拼音输入法 游标遍历 oracle 导入导出实用程序(imp/exp) oracle 导入/出命令 wonderful life
escape, encodeURI, encodeURIComponent
Good life · 2010-02-25 · via 博客园 - Good life

escape 方法 描述 对 String 对象编码以便它们能在所有计算机上可读 语法 escape(charstring) charstring 参数是要编码的 String 对象。 说明 escape 返回一个包含了 charstring 内容的新的 String 对象( Unicode 格式), 所有空格、标点、重音符号以及其他非 ASCII 字符都用 %xx 编码代替,其中 xx 等于表示该字符的十六进制数。 例如,空格返回的是 "%20" 。 字符的值大于 255 的用 %uxxxx 格式存储。 适用于:Global 对象 encodeURI 方法 描述 返回编码为有效的统一资源标识符 (URI) 的字符串。 语法 function encodeURI(URIString : String) : String 参数 URIString 必选。表示编码 URI 的字符串。2007-7-31 备注 encodeURI 方法返回一个已编码的 URI。如果将编码结果传递给 decodeURI,则将返回初始的字符串。encodeURI 不对下列字符进行编码:“:”、“/”、“;”和“?”。请使用 encodeURIComponent 对这些字符进行编码。 适用于:Global 对象 encodeURIComponent 方法 描述 返回编码为统一资源标识符 (URI) 的有效组件的字符串。 语法 function encodeURIComponent(encodedURIString : String) : String 参数 encodedURIString 必选。表示编码 URI 组件的字符串。 备注 encodeURIComponent 方法返回一个已编码的 URI。如果将编码结果传递给 decodeURIComponent,则将返回初始的字符串。因为 encodeURIComponent 方法将对所有字符编码,请注意,如果该字符串代表一个路径,例如 /folder1/folder2/default.html,则其中的斜杠也将被编码,这样,当该字符串作为请求发送到 Web 服务器时它将是无效的。如果字符串中包含多个 URI 组件,请使用 encodeURI 方法进行编码。 适用于:Global 对象 使用最多的应为encodeURIComponent,它是将中文、韩文等特殊字符转换成utf-8格式的url编码,所以如果给后台传递参数需要使用encodeURIComponent时需要后台解码对utf-8支持(form中的编码方式和当前页面编码方式相同) escape不编码字符有69个:*,+,-,.,/,@,_,0-9,a-z,A-Z encodeURI不编码字符有82个:!,#,$,&,',(,),*,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,A-Z encodeURIComponent不编码字符有71个:!, ',(,),*,-,.,_,~,0-9,a-z,A-Z

posted on 2010-02-25 11:56  Good life  阅读(175)  评论()    收藏  举报