Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ディクショナリジェネリックオブジェクトにアクセスしたい(asp.netサーバー側から渡す)javascriptで...&そのディクショナリをキー、値のペアとして取得したい..
この問題を解決するために私を助けてください。前もって感謝します。
少し簡単です。以下のコードを使用してみてください。
<script type="text/javascript"> var perm =@Html.Raw(Json.Encode(@ViewBag.Message)); </script>