企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ var baseUrl = "https://api.douban.com/v2/movie/" async function http({ url } ) { return $.ajax({ url: baseUrl + url, dataType: "jsonp" }) } async function getData() { try { var data = await http({ url: "search?q=你的名字&count=1" }); var id = data.subjects[0].id; var detail = await http({ url: id }); console.log(data); console.log(detail) }catch(err){ console.log(err) } } getData() ~~~