Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

业务开发

前端组件引入

通过前端组件方式调用百度纠错接口,在需要检测的页面头部引入组件文件

<#include "/component/ms-ai.ftl">

在页面中调用组件

<ms-ai :content="需要检测的内容"></ms-ai>

渲染后会在页面上出现 错词检测 的按钮效果

Tip

基于vue实现的简单组件,开发者可以根据需求进行二次开发。

百度AI配置

错词检测