doc: add copy-paste local install instructions
This commit is contained in:
parent
100f70f047
commit
ceda8242d9
16
README.md
16
README.md
|
@ -7,6 +7,22 @@ Production Build: 103B (min + gz)
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
### via GitHub
|
||||||
|
|
||||||
|
```bash
|
||||||
|
my_ver="v2.1.2"
|
||||||
|
|
||||||
|
mkdir ./vendor/
|
||||||
|
curl -fsSL "https://raw.githubusercontent.com/coolaj86/ajquery.js/${my_ver}/ajquery.js" \
|
||||||
|
-o ./vendor/ajquery.js
|
||||||
|
```
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="/vendor/ajquery.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
### via CDN
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/ajquery"></script>
|
<script src="https://unpkg.com/ajquery"></script>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue