1,assets文件夹导入short.js;
2,angular.json文件中script引入short.js;
"scripts": [
"src/assets/short.js
]
3,在调用插件的ts中 声明 declare var getPy: any,即可调用getPy()方法;
4,ng serve 可能要重启;
1,assets文件夹导入short.js;
2,angular.json文件中script引入short.js;
"scripts": [
"src/assets/short.js
]
3,在调用插件的ts中 声明 declare var getPy: any,即可调用getPy()方法;
4,ng serve 可能要重启;