您需要使用导入jquery
angular-cli。编辑
angular-cli.json文件。
查找
script数组并添加jQuery。
"scripts": [ "../node_modules/jquery/dist/jquery.min.js"],

您需要使用导入jquery
angular-cli。编辑
angular-cli.json文件。
查找
script数组并添加jQuery。
"scripts": [ "../node_modules/jquery/dist/jquery.min.js"],