安装 npm install jquery npm install @types/jquery 然后在你需要使用的ts文件的顶部,导入juqery库就可以使用了 import * as $ from ‘jquery’; 引入jquery的路径可能每个人会有所不同,根据自己目录查找