摘要: JavaScriptResult : ActionResult大家可以看出里面有JavaScriptResult() 构造函数string Script { get; set; } 脚本字符串属性override void ExecuteResult(ControllerContext context);所以下面我们返回一段js的字符串public ActionResult jsClick() { string s = "$('#showResult').html('你点击了');"; return JavaScript(s); } 阅读全文
posted @ 2013-06-26 11:17 赤狐(zcm123) 阅读(778) 评论(0) 推荐(0)