add installation instruction (#23653)
This commit is contained in:
@ -9,21 +9,39 @@ AngularJS(版本1.x)是一个开源的前端JavaScript框架。 AngularJS扩
|
|||||||
|
|
||||||
**安装** :
|
**安装** :
|
||||||
|
|
||||||
故宫:
|
安装node.js
|
||||||
|
|
||||||
\`\`\`壳 npm安装角度
|
安装完毕检查node.js的版本,运行如下代码:
|
||||||
```
|
|
||||||
HTML:
|
```shell
|
||||||
|
node --version
|
||||||
```
|
```
|
||||||
|
|
||||||
HTML
|
通过Node.js的npm命令安装最新版本的npm/bower
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install -g npm
|
||||||
|
npm install -g bower
|
||||||
```
|
```
|
||||||
bower:
|
通过npm安装:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install angular
|
||||||
|
```
|
||||||
|
HTML:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/node_modules/angular/angular.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
贝壳 凉亭安装角度
|
通过bower安装:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
bower install angular
|
||||||
```
|
```
|
||||||
HTML:
|
HTML:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/bower_components/angular/angular.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
HTML
|
|
||||||
|
Reference in New Issue
Block a user