💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
> 回调函数:处理一种异步的函数,比如ajax回调、jQurey > 用ajax写回调函数 `<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> ` ``` <script> function http( success) { return $.ajax({ url: "https://douban.uieee.com/v2/movie/in_theaters", dataType: "jsonp", success:res=>{ success(res) } }) }; /* var success = function(res){ console.log(res); } http(success) */ //简写 http(res=>{ console.log(res) }) </script> ```