其他分享
首页 > 其他分享> > Missing stack frames

Missing stack frames

作者:互联网

  1. Add the repo

npm install vue-underscore

OR

yarn add vue-underscore

  1. Create a file named plugins/underscore.js
import Vue from 'vue'
import underscore from 'vue-underscore'
Vue.use(underscore)
  1. Add it to the nuxtconfig.js file

plugins: [{ src: '~/plugins/underscore', ssr: false }]

  1. Use it
<script>
export default {
  name: 'MyComponent',
  mounted() {
    console.log(this.$_.range(2000, 2020))
  }
}
</script>

标签:vue,file,Missing,Add,underscore,plugins,frames,import,stack
来源: https://www.cnblogs.com/360minitao/p/14424049.html