Skip to content

Commit

Permalink
modify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jul 5, 2017
1 parent 552cdf0 commit f1d6c16
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@

[releases and changelog](https://github.com/tencentyun/cos-js-sdk-v5/releases)

## npm 安装

[npm 地址](https://www.npmjs.com/package/cos-js-sdk-v5)

```
npm i cos-js-sdk-v5 --save
```

## get started

```javascript
在 html 页面引入 dist/cos-js-sdk-v5.js
```html
<script src="dist/cos-js-sdk-v5.js"></script>
<script>
var cos = new COS({
AppId: '1250000000',
getAuthorization: function (options, callback) {
Expand All @@ -35,6 +30,7 @@ cos.sliceUploadFile({
}, function (err, data) {
console.log(err, data);
});
</script>
```

[更多例子](demo/demo.js)

0 comments on commit f1d6c16

Please sign in to comment.