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

推荐订阅源

U
Unit 42
S
Securelist
小众软件
小众软件
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - Franky
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
O
OpenAI News
Cloudbric
Cloudbric
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
PCI Perspectives
PCI Perspectives
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
P
Palo Alto Networks Blog
M
MIT News - Artificial intelligence
V2EX - 技术
V2EX - 技术
阮一峰的网络日志
阮一峰的网络日志
Hacker News - Newest:
Hacker News - Newest: "LLM"
G
Google Developers Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Last Watchdog
The Last Watchdog
The Register - Security
The Register - Security
腾讯CDC
N
News and Events Feed by Topic
C
Check Point Blog
爱范儿
爱范儿
T
Tailwind CSS Blog
Webroot Blog
Webroot Blog
P
Proofpoint News Feed
S
Schneier on Security
MyScale Blog
MyScale Blog
N
News | PayPal Newsroom
Recorded Future
Recorded Future
T
Tenable Blog
I
InfoQ
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Microsoft Security Blog
Microsoft Security Blog
Simon Willison's Weblog
Simon Willison's Weblog
Engineering at Meta
Engineering at Meta

博客园 - 青瓦斋

【转】堆栈和托管堆 c# js Array 跨页面传递类型会丢失 用while循环插入测试数据(SQL Server2005) SET ROWCOUNT javascript动态改变窗口大小 DefaultProperty("Text"), ToolboxData Asp.Net学习资料(来自MSDN) (转)解析.Net框架下的XML编程技术 (转)浅谈数据库设计技巧 (转)基本的数据库并发控制 c#.net中参数修饰符ref,out ,params得区别 (转)[职场生存]细节和感觉[三]:感觉 (转)[职场生存]细节和感觉[二]:细节包括哪些部分? (转)[职场生存]细节和感觉[一]:细节 C#中的委托(转) SQL查询语句精华使用简要 40种网站设计常用技巧 Visual C#常用函数和方法集汇总 C#的四个基本技巧
js传递中文参数的问题 - 青瓦斋 - 博客园
青瓦斋 · 2008-01-21 · via 博客园 - 青瓦斋

<href="javascript:void(0);" title="转发信息" class="RMessage" onclick="SMSSendMessage('','<%# Server.UrlEncode(Eval("C_SenText").ToString().Trim()) %>');">
                                            转发信息
</a>

这必须用Server.UrlEncode()方法对文本编码,不然文本里含有全角的字符时,会报“未结束的字符串常量”异常。在js里对文本进行解码:

obj.SMSContent = decodeURIComponent(SMSContent);

得用decodeURIComponent()解码,不能用decodeURI(),因为它对Server.UrlEncode()编码后的“:”、“/”、“;”、“@”和“?”是没作用的,反过来说,ecodeURI()不会对这些字符进行编码。

个人小经验,讲得不够全面,希望对大家有所启发。