摘要: ·Customer类publicclassCustomer{publicintUnid {get;set; }publicstringCustomerName {get;set; }publicstringMemo {get;set; }publicstringOther {get;set; }}·... 阅读全文
posted @ 2015-10-12 22:36 务观 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 使用jQuery的$.post方法可以以POST形式向服务器发起AJAX请求。$.post方法是jQuery的实用工具方法。$.post方法语法$.post(url,parameters,callback)参数url(字符串)服务器端资源地址。parameter(对象)需要传递到服务器端的参数。 参... 阅读全文
posted @ 2015-10-12 21:26 务观 阅读(9876) 评论(0) 推荐(0) 编辑
摘要: $.ajax()方法详解1.url:要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type:要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。3.timeout:要求为Nu... 阅读全文
posted @ 2015-10-12 20:31 务观 阅读(821) 评论(0) 推荐(0) 编辑