通过API接口获取数据并使用谷歌接口翻译
首先是不翻译的代码,直接获取API数据并在HTML中显示:<script type="text/javascript" charset="utf-8"> const apiUrl = 'API接口地址'; const container = document.getElementById('asklist'); fetch(apiUrl, { method: 'POST', headers: { 'Content-Type': 'app...