摘要:
概念:通过 HTTP 请求加载远程数据。 *注:所有的选项都可以通过$.ajaxSetup()函数来全局设置。 回调函数:要处理$.ajax()得到的数据,则需要使用回调函数。beforeSend、error、dataFilter、success、complete。 beforeSend 在发送请求 阅读全文
摘要:
<script> then response then data 优势:不用引用jq fetch('./00 data.json') 提供一个参数用来指明想 fetch() 到的资源路径,然后返回一个包含响应结果的 promise(一个 Response 对象) .then(function(res 阅读全文