**1:安装**
cnpm install lodash -S
**2:main.js中导入**
import _ from 'lodash'
**3:绑定到Vue全局变量中使用**
Vue.prototype._ = _
4:在页面中使用
this._.now()
vue中引入lodash
最新推荐文章于 2024-07-06 13:28:38 发布
**1:安装**
cnpm install lodash -S
**2:main.js中导入**
import _ from 'lodash'
**3:绑定到Vue全局变量中使用**
Vue.prototype._ = _
4:在页面中使用
this._.now()