2014年3月3日

$.ajax用法与举例

摘要: $.ajax({ type:'GET', url:'http://www.phpernote.com/jquery.php', data:{username:'phpernote',password:'123456'}, dataType:'json', timeout:3000, cache:false, async:true, beforeSend:function(){ alert('请求之前'); }, success:function(data){ alert('请求成功' 阅读全文

posted @ 2014-03-03 14:34 riky1989 阅读(255) 评论(0) 推荐(0)

mvc return json

摘要: 1.控制器using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcApplication1.Controllers{ public class Employee { public int Id { get; set; } public string Name { get; set; } } [HandleError] public class HomeControl... 阅读全文

posted @ 2014-03-03 14:23 riky1989 阅读(410) 评论(0) 推荐(0)

导航