Skip to content

插件安装

Xianxu edited this page Feb 21, 2024 · 1 revision

插件安装

SDK很多功能都是以插件的形式进行安装,如广告拦截,浏览器设置,工具,脚本扩张等

引入插件

import {
	WebView,
	Setting,
	Tools
} from '@/libs/browser.core.js'

const webview = new WebView()

安装插件

安装插件将调用plusInstall方法

webview.plusInstall(Setting)
webview.plusInstall(Tools)

后面会介绍每个插件的功能