cnpm install -g @angular/cli
ng new my-app
引入jQuery
cnpm install jquery --save
让typescript认识bootstrap和jQuery一些字符(比如jQuery的$):
cnpm install @types/jquery --save-dev
启动
ng serve
npm start
ng serve -p 3000
打包
ng build
cnpm install -g @angular/cli
ng new my-app
引入jQuery
cnpm install jquery --save
让typescript认识bootstrap和jQuery一些字符(比如jQuery的$):
cnpm install @types/jquery --save-dev
启动
ng serve
npm start
ng serve -p 3000
打包
ng build
本文标题:2021-02-01
本文链接:https://www.haomeiwen.com/subject/ukjjtltx.html
网友评论