1.使用npm命令往项目中添加jQuery。

 

npm install jquery --save

 

2.在你想要用jQuery的组件中添加。

 

import * as $ from "jquery";

 

3.就可以正常使用了。

相关文章: