Skip to content

Commit

Permalink
docs: browser cdn Introduce instructions (#447)
Browse files Browse the repository at this point in the history
* docs: browser cdn Introduce instructions
  • Loading branch information
binghaiwang committed Apr 19, 2018
1 parent 1c9ded2 commit 8714425
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,12 @@ Include the sdk lib in the `<script>` tag and you have `OSS` available
for creating client. We use `OSS.Wrapper` here to avoid using `co`:

```html
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js"></script>
// x.x.x The specific version number represented
// we recommend introducing offline resources, because the usability of online resources depends on the stability of the cdn server.
<!-- Introducing online resources -->
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-x.x.x.min.js"></script>
<!-- Introducing offline resources -->
<script src="./aliyun-oss-sdk-x.x.x.min.js"></script>
<script type="text/javascript">
var client = new OSS.Wrapper({
region: 'oss-cn-hangzhou',
Expand Down

0 comments on commit 8714425

Please sign in to comment.