在controller中加入代码
ViewBag.js="<script>alert('弹出框');</script>";
在视图中加入代码
@Html.Raw(ViewBag.js)
本文共 92 字,大约阅读时间需要 1 分钟。
在controller中加入代码
ViewBag.js="<script>alert('弹出框');</script>";
在视图中加入代码
@Html.Raw(ViewBag.js)
转载地址:http://efghl.baihongyu.com/