摘要: 在main.js里进行全局注册 Vue.prototype.ajax = function (){}在所有组件里可调用 this.ajax // xxx.js 组件 exports.install = function (Vue, options) { Vue.prototype.ajax = fu 阅读全文
posted @ 2017-07-07 15:30 安心牧羊人 阅读(3348) 评论(0) 推荐(0)