通过Ajax发送数据.ppt-课程中心.ppt

通过Ajax发送数据.ppt-课程中心

Web应用开发;内容列表;1.关于Ajax技术;Ajax技术之Ajax优缺点 ;XMLHttpRequest对象;2.基于请求加载数据;;加载数据之Load()方法;;关于载入的html;;加载数据之$.get()方法;;加载数据之$.post()方法;加载数据之$.getScript()方法;;加载数据之$.getJSON()方法;;;;加载数据之数据格式的选择;3.向服务器传递数据;;;;4.关注请求;$.ajax()方法;;$(“#send”).click(function(){ $.ajax({ type:”get”, url:”getuser.asp”, data:{user:”admin”,pass:”123456”}, success:ShowSuccess, Error:ShowError, }); }) function ShowSuccess(data,textStatus){} function ShowSuccess(XMLHttpRequest,textStatus,errroThrown){};.ajaxStart()和.ajaxStop();.ajaxStart()和.ajaxStop();再次启用回调函数;5.错误处理;$(#letter-e a).click(function(event) { event.preventDefa

文档评论(0)

1亿VIP精品文档

相关文档