企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
1 AJAX load()方法 load()方法从服务器加载数据,并把返回的数据放在被元素中; load()方法的回调函数: function(reponseTxt,statusTxt,xhr) responseTxt:调用成功时的结果内容; statusTxt:调用的状态; xhr:包含XMLHttpRequest对象; AJAX get()和post()方法: $.get()和$.post() $.get(URL,function()); 回调函数有两个参数:data和status; $.post(URL,data,callback); $.ajax():可以用于完成异步ajax请求;