ITeye博客

aaronwong1989的博客

aaronwong1989 · 共 1 篇文章

XML、HTML、URL特殊字符的处理

** :arrow: 不完全代码 ** form表单提交时,调用一个js函数将需要特殊处理的字段使用encodeURIComponent()方法进行编码。 <html> <form name="instantMgrSendForm" action="<%=path + jspCtxSer.getRequestServletUrl()%>" method="post" onsubmit="return validate()"> <%=jspCtxSer.getRequiredHtmlHiddenFields(null,"sendInstantMgrFlow")%> <textarea id="…

2011-12-10 19:42 · 评论(0)