Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lyddream committed Sep 11, 2018
1 parent 00fa05b commit 2aec629
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

loopring.js包含UMD规范的版本和CommonJS规范的版本

### UMD 规范包
- ##### UMD 规范包


通过下面的方式引入 loopring.min.js

Expand All @@ -30,7 +31,9 @@ window.loopring.EthRpcUtils
window.loopring.SocketUtils
```

### CommonJS 规范包 (要求引入babel-polyfill)
- ##### CommonJS 规范包

引用commojs规范包,需要引入 babel-polyfill

```javascript
import loopring from 'loopring.js';
Expand Down
9 changes: 6 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ This developer documentation introduces the use of loopring.js to access Looprin

loopring.js ships as both a [UMD](https://github.com/umdjs/umd) module and a [CommonJS](https://en.wikipedia.org/wiki/CommonJS) package.

### UMD Package
- ##### UMD Package


Include the following script tag in your HTML:

Expand All @@ -35,7 +36,9 @@ window.loopring.EthRpcUtils
window.loopring.SocketUtils
```

### CommonJS Package (babel-polyfill is required)
- ##### CommonJS Package

using commonjs version loopring.js, babel-polyfill is required,

```javascript
import loopring from 'loopring.js';
Expand All @@ -45,7 +48,7 @@ or
const loopring = require('loopring.js');
```

### API
## API

note: The following code examples take the CommonJS approach

Expand Down

0 comments on commit 2aec629

Please sign in to comment.