• 安装扩展

    npm i vue-awesome-mui -S
    
  • 引入

    // main.js中引入'vue-awesome-mui'
    import Mui from 'vue-awesome-mui';
    Vue.config.productionTip = false
    Vue.use(Mui);
    
  • 使用

    <script>
      export default {
        methods:{
          plusReady () {
            const win = plus.webview.create();
            win.show();
          },
        },
        created () {
          // 扩展API是否准备好,如果没有则监听“plusready"事件
          if (window.plus) {
            this.plusReady()
          } else {
            document.addEventListener('plusready', this.plusReady, false) 
          }
        }
      }
    </script>
    

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2021-12-13
  • 2021-08-28
  • 2022-12-23
  • 2021-10-25
  • 2021-10-07
  • 2021-10-26
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案