![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
雪猫
这个作者很懒,什么都没留下…
展开
-
时分传1970年1月1号日期时间的时间戳
import moment from 'moment';remindTime: values.remindTime ? values.remindTime .set({ year: 1970, month: 0, date: 1 }).valueOf() : undefined,原创 2022-03-15 17:10:37 · 367 阅读 · 1 评论 -
语音条显示一半,没有进度条
<audio controls style={{ verticalAlign: 'middle', height: 20, width: 300 }}> <source src={voiceUrl} type="audio/mpeg" /> <embed style={{ verticalAlign: 'middle', height: 20, width: 300 }} src={voiceUr...原创 2022-01-17 15:58:01 · 444 阅读 · 0 评论 -
JS 解决txt文件直接打开而不是下载
{valueList?.map(url => { let href = url if (getFileName(url)?.endsWith('.txt')) { href = href + '?response-content-type=application/octet-stream' } return <div style={{ width: '2...原创 2021-10-25 15:32:32 · 1189 阅读 · 0 评论