标签:
[HttpPost] public ActionResult PostTest() { //你的业务代码 //...... //要执行的js string js = "window.location.href=‘/Home/index2‘;"; return JavaScript(js); }
MVC POST请求后执行javascript代码
原文地址:http://www.cnblogs.com/Jerrycjc/p/5216295.html