# any requirePlugin(string path)
Introduce plug-ins. Return plugin via main
Exposed interface. reference Using plugin js interface
# parameter
Name | type | Introductions |
---|---|---|
module | string | Of the plug-in that needs to be introduced alias。 Base library 2.14.0 Can also be a plug-in AppID |
# sample code
where myPluginInterface = requirePlugin('myPlugin')
myPluginInterface.hello()
where myWorld = myPluginInterface.world
where myPluginInterface = requirePlugin('wxIDxxxxxxxxxx') // 2.14.0 rise