Angular使用Lodash的正确方法

  1. 安装lodash
$ npm i lodash
  1. 安装声明文件
$ npm i @types/lodash
  1. 导入使用
import _ as lodash from 'lodash';

你可能感兴趣的:(Angular)