Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 20, 2022
1 parent 9a9e270 commit c973084
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ new Date('2015-10-12 23:01:11').format("yyyy年MM月dd日 hh:mm:ss");
//⇒ "2015年10月12日 23:01:11"
```

Or manually download and link **@wcj/date** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/@wcj/date/):

CDN: [UNPKG](https://unpkg.com/@wcj/date/) | [jsDelivr](https://cdn.jsdelivr.net/npm/@wcj/date/)

```js
<script src="https://unpkg.com/@wcj/date/lib/index.js"></script>
<script type="text/javascript">
new Date('2015-10-12 23:01:11').format("yyyy年MM月dd日 hh:mm:ss");
//⇒ "2015年10月12日 23:01:11"
</script>
```

## API

### format
Expand Down

0 comments on commit c973084

Please sign in to comment.