例如:
视图的地址路径:
System.Web.HttpUtility.UrlEncode(内容)
lay-href="/Control/Index?Name=@System.Web.HttpUtility.UrlEncode(Model.Name)"
JS传的地址路径:
encodeURI(encodeURI(内容))
url="/Control/Index";
window.location.href = url+"&Name=" + encodeURI(encodeURI(name)) ;