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>
上一篇:使用 Pillow 快速创建 GIF 动图


下一篇:rk音频驱动分析之tinycap录音