摘要: 假设cshtml文件中是这样的:<script type="text/javascript"> $(document).ready(function(){ $("#btn").click(function(){ $.ajax({ type: 'POST', url: "/Home/MyAjax", data: { val1: $("#txt1").val(), val2:... 阅读全文
posted @ 2013-06-18 18:32 鸿鹄_A 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 原始出处 :http://cnn237111.blog.51cto.com/2359144/984466本人只是转载原文如下:假设 controller中的方法是如下:publicActionResultReadPerson(PersonModelmodel){strings=model.ToString();returnContent(s);}publicActionResultReadPersons(List<PersonModel>model){stringresult="";if(model==null)returnContent(result);for 阅读全文
posted @ 2013-06-18 18:31 鸿鹄_A 阅读(390) 评论(0) 推荐(0) 编辑