vue 使用window的对象_浏览器对象的使用(window对象)
一:1:在main.js中Vue.prototype.myfunction = function() {/*你的自定义Vue方法*/}2:在mounted(或其他生命周期中) 或者 methods里面的方法中直接调用 myfunction()二:1:再main.js中window.myfunctio
一:1:在main.js中Vue.prototype.myfunction = function() {/*你的自定义Vue方法*/}2:在mounted(或其他生命周期中) 或者 methods里面的方法中直接调用 myfunction()二:1:再main.js中window.myfunctio