ng 引入jquery
1.在项目中
- npm install --save jquery
在对应组件中加入
- import * as $ from "jquery";
在angular.json中的 scripts:[]中加入
- "./node_modules/jquery/dist/jquery.js"
测试是否安装成功,随便写一个简单的弹窗,看是否能够实现即可