随笔分类 - Ajax
摘要:一. 简单使用1. post请求和get请求获取服务器当前时间。2. post请求传参和get请求传参方式不同。 (1)get直接在URL中传参就可以(xhr.open("get", "GetTime.ashx?name=huoaa", true);)。 (2)post传参需要设置表单传送数据的编码...
阅读全文
摘要:一.关键步骤1. 代码生成器的使用。2. json序列化生成器。3. 封装AJAX异步请求,JsHelper。(浏览器兼容方式创建异步对象)4. 要拿到异步对象,闭包????5. 修改界面html的布局。(HTML的调试)6. 显示正在加载。7. 分页存储过程-AjaxPageData-页码条JS。...
阅读全文
摘要:1. GetClassData.html 1 2 3 4 5 6 39 40 41 44 45 View Code2. GetClassData.ashx 1 2 3 using System; 4 using System.Web; 5 using S...
阅读全文
摘要:1. GetTime.html 1 2 3 4 5 6 49 50 51 52 53 54 View Code2. GetTime.ashx 1 2 3 using System; 4 using System.Web; 5 6 public ...
阅读全文