弹出提示框,在跳转

var script = String.Format("<script>alert('别逗了,作业还没选中就上传?');location.href='{0}'</script>", Url.Action("StudentCollection", "Student"));
return Content(script, "text/html");

posted @ 2019-04-13 18:34  风葬秋暝  阅读(235)  评论(0)    收藏  举报