2020年6月12日

11 vue 自定义全局方法

摘要: //global.js// 定义vue 全局方 // 定义vue 全局方法 建议自定义的全局方法加_ 以示区分 export default { install(Vue, options = {}) { // 全局方法1 Vue.prototype._fn1 = function () { // c 阅读全文

posted @ 2020-06-12 20:10 章画 阅读(897) 评论(0) 推荐(0) 编辑

导航