Skip to content

Commit

Permalink
change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Oct 25, 2017
1 parent 08f1662 commit 1e0d345
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ util misc for browser.js.

## Usage

### browser
```
// browser
var currentLanguage = utilMisc.browser.getLanguage();
console.log(currentLanguage);
```
### cookie

```
// cookie
utilMisc.cookie('sid'); // get cookie 'sid'
utilMisc.cookie('sid', 'xxxxxxx'); // set cookie 'sid=xxxxxxx'
```

### uri

```
// URI
// get current url query param
// http://127.0.0.1:8080?name=hello => 'hello'
utilMisc.URI.query('name');
Expand Down

0 comments on commit 1e0d345

Please sign in to comment.