例如:
視圖的地址路徑:
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)) ;