百度翻译api

This commit is contained in:
吴长征 2022-06-17 15:07:00 +08:00
parent 97f0ba5aae
commit 942cda9530

7
资源/api.md Normal file
View File

@ -0,0 +1,7 @@
百度翻译:
~~~
https://fanyi.baidu.com/transapi?from=zh&to=en&query=中国&source=txt
fetch("https://fanyi.baidu.com/transapi?from=zh&to=en&query=电视机&source=txt").then(r=>r.json()).then(j=>console.log(j.result))
~~~