💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## $().load 语法 ``` .load( url [, data ] [, complete(responseText, textStatus, XMLHttpRequest) ] ) ``` ## 示例 ### hello world ``` $('#result').load('ajax/test.html', function() { alert('Load was performed.'); }); ``` ### 带请求参数 ``` $("#feeds").load("feeds.php", {limit: 25}, function(){ alert("The last 25 entries in the feed have been loaded"); }); ``` ### 请求前显示 loading ``` $('#result').html("<p>loading<p>").load('ajax/test.html', function() { alert('Load was performed.'); }); ```