MorJS 插件示例 使用方式

2024-01-29 11:49 更新
通過(guò) MorJS 提供的 aApp 或 wApp 來(lái)使用插件的方法:
// 在小程序的 app.js 中
import aApp from '@morjs/core'
import YourCustomRuntimePlugin from 'your_custom_runtime_plugin'

aApp(
  {
    onLaunch() {}
  },
  [
    () => {
      plugins: [new YourCustomRuntimePlugin()]
    }
  ]
)


以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)