在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:timeago-react开源软件地址:https://gitee.com/hustcc/timeago-react开源软件介绍:timeago-react
The component based on timeago.js which is a simple javascript module.
1. install
2. usageimport React from 'react';import TimeAgo from 'timeago-react'; // var TimeAgo = require('timeago-react');<TimeAgo datetime={'2016-08-08 08:08:08'} locale='zh_CN' /> 3. component props
The datetime to be formated. can be
Live render, default is
The
The 4. LICENSEMIT |
请发表评论