2017-07-13 mvc javascript傳值 345 0 mvc javascript傳值 view端 @Html.Hidden("a", "0") <script> var a = document.getElementById("a"); a.value = "傳a value"; </script> controller端 string b = Request.Params["a"]; 回首頁