diff --git a/资源/api.md b/资源/api.md new file mode 100644 index 0000000..7d11dc0 --- /dev/null +++ b/资源/api.md @@ -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)) +~~~ \ No newline at end of file