1.0.6 • Published 3 years ago
youdaojs v1.0.6
YoudaoJS
Node.js 有道翻译模块
- 开发日期:2023 年 4 月 11 日
- 作者:欧阳鹏
安装
npm install youdaojs导入
- TypeScript - import YouDaoJS from './main'
- JavaScript - const YouDaoJS = require("./main").default
使用
const fanyi = new YouDaoJS()
fanyi.getResult('你好').then(data => {
    console.log(data)
})
fanyi.getResult('hello', 2, 1).then(data => {
    console.log(data)
})