接口地址:
https://dictweb.translator.qq.com/eduTranslate?sentence=内容&channel=tencent
以下是iApp调用实列
//注意需要用到浏览器,日后截取
ug(要翻译内容的编辑框id,"text" ,nr)
f(nr=="")
//这里判断一下编辑框是不是空的
{
tw("你要翻译啥?”)
}
else
{
us(浏览器id,"url",
"
https://dictweb.translator.qq.com/eduTranslate?sentence="+nr+"&channel=tencent")
tw(”翻译以设置到浏览器”)
}