前台用Javascript对变量进行UrlEncode编码方法: <br>var Description= <span style="color: rgb(255, 0, 0);">encodeURIComponent</span>(document.getElementById("txtNotes").value); <br>后台接受并解码:<br> _UserCode.Description =Server.<span style="color: rgb(255, 0, 0);">UrlDecode</span>(Request.QueryString["Description"].ToString());
UrlEncode
最新推荐文章于 2022-08-13 15:59:11 发布