Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Feb 25, 2021
2 parents 0cb3ba0 + 53d6c88 commit cfd6224
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ util kits for browser.js.

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

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

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

0 comments on commit cfd6224

Please sign in to comment.