可以從Controller 接參數到View 直接使用在javascript. <script> var name = @Html.Raw(Json.Encode(ViewData["Name"])); </script> ...
確定! 回上一頁