Guest User

Untitled

a guest
Nov 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import api from '@/js/api'
  2. Vue.prototype.$api = api
  3.  
  4. //api.js
  5. import Vue from 'vue'
  6.  
  7. export default function () {
  8. console.log('default export', this)
  9. //=> Vue
  10. }
  11.  
  12. var MyModule = {
  13. this.fn1 = function(){console.log(this) //=>Vue}
  14. this.fn1 = function(){console.log(this) //=>Vue}
  15. }
Add Comment
Please, Sign In to add comment