✦ AI 划词解析

选中任意文字或代码错误信息,AI 即时解析内容、翻译文本或分析错误原因。

使用方法

1
鼠标划取任意文字、报错、代码
2
点击弹出的「解析」按钮
3
AI 自动判断并翻译或解析
4
点击空白处关闭,或一键复制

English Sample

Artificial intelligence (AI) is intelligence demonstrated by machines, as opposed to natural intelligence displayed by animals including humans. AI research has been defined as the field of study of intelligent agents, which refers to any system that perceives its environment and takes actions that maximize its chance of achieving its goals.

日本語サンプル

人工知能(じんこうちのう、英: artificial intelligence、AI)とは、人間の知的能力をコンピュータ上で実現する様々な技術・ソフトウェア・コンピュータシステムのことである。

中文示例

人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器。该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。

代码报错解析示例

Error: Cannot read properties of undefined (reading 'map')
    at ProductList (ProductList.jsx:42:18)
    at renderWithHooks (react-dom.development.js:14985:18)
    at mountIndeterminateComponent (react-dom.development.js:17811:13)

HTTP 400 Bad Request: {"code":"VALIDATION_ERROR","message":"Field 'email' is required but was not provided","path":"/api/v1/register"}

Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

↑ 选中以上任意一行错误信息,点击「解析」,AI 将解释原因并给出修复建议。

嵌入你的网页

在你的 HTML 中加一行 script 即可,域名/端口会自动跟随当前页面地址,无需手动填写:

<script src="//你的域名/translate-widget.js"></script>

CSS 会自动加载,无需额外引入。API Key 安全存储在服务端,前端不可见。