@lastos/page-spy-plugin-mp-eval
v2.2.4
Published
Used for code evaluation in mini program.
Keywords
Readme
English | 中文
@lastos/page-spy-plugin-mp-eval
The MPEvalPlugin is used in mini program SDK of PageSpy, making it possible to run dynamic scripts in the mini program environment.
Available mini program SDKs include:
[!CAUTION] When submitting the mini program for review, be sure to delete this plugin in the code, otherwise the review will fail.
Usage
// In your entry file like "main.ts"
import PageSpy from '@lastos/page-spy-wechat';
import MPEvalPlugin from '@lastos/page-spy-plugin-mp-eval';
// Register plugin
PageSpy.registerPlugin(new MPEvalPlugin());
// Init PageSpy
const pageSpy = new PageSpy();