Skip to content

Commit

Permalink
docs(Calander): add faq
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Dec 31, 2019
1 parent 5fff24c commit 115fd59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/calendar/README.zh-CN.md
Expand Up @@ -252,3 +252,11 @@ export default {
| 方法名 | 说明 | 参数 | 返回值 |
|------|------|------|------|
| reset | 重置选中的日期到默认值 | - | - |

## 常见问题

### 在 iOS 系统上初始化组件失败?

如果你遇到了在 iOS 上无法渲染组件的问题,请确认在创建 Date 对象时没有使用`new Date('2020-01-01')`这样的写法,iOS 不支持以中划线分隔的日期格式,正确写法是`new Date('2020/01/01')`

对此问题的详细解释:[stackoverflow](https://stackoverflow.com/questions/13363673/javascript-date-is-invalid-on-ios)

0 comments on commit 115fd59

Please sign in to comment.