首页 > Web开发 > 详细

vue-插件 引用ali.JS,

时间:2018-07-03 13:10:14      阅读:381      评论:0      收藏:0      [点我收藏+]

技术分享图片技术分享图片

技术分享图片

技术分享图片

 

技术分享图片

 

 

const wx = require(‘./1.3.2.js‘).wx

const plugin = {
  install (Vue) {
    Vue.prototype.$wechat = wx
    Vue.wechat = wx
  },
  $wechat: wx
}

export default plugin
export const install = plugin.install

 

 

技术分享图片

 

/**
 * Created by cuiyang on 2018/7/3.
 */

const alipay = require(‘./alipayjsapi.min‘).ap

const plugin = {
    intall(){
        Vue.prototype.$alipay = alipay
        Vue.alipay = alipay
    },
    alipay: alipay
}

export default plugin
export const install = plugin.install

技术分享图片

 

vue-插件 引用ali.JS,

原文:https://www.cnblogs.com/MR-cui/p/9257591.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!