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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM