随笔分类 -  React

Reactjs
阿里云javascript分片上传失败的解决办法
摘要:前端项目:React + Antd mobile + 阿里云OSS Node.js SDK实现文件上传。 在电脑上运行良好,放到手机上大文件就上传失败。 打开Chrome,地址栏输入`chrome://inspect/#devices`祭出Chrome调试神器 发现如下错误: 于是顺藤摸瓜来到htt 阅读全文

posted @ 2020-07-09 08:34 前端风云志 阅读(1081) 评论(0) 推荐(0)

react项目添加typescript类型定义文件 .d.ts
摘要:最近用react + antd mobile + typescript开发项目,其中使用了rc-form这个包,可惜没有typescript版本,导致找不到类型定义。 一起来重温一下这个经典的错误。 D:/Code/test/src/pages/me/register/RegisterTest.ts 阅读全文

posted @ 2020-07-07 08:50 前端风云志 阅读(8834) 评论(0) 推荐(1)

h5 移动端适配方案
摘要:h5 移动端适配方案 设定viewport 打开public\index.html,在html\head结点下加入<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum- 阅读全文

posted @ 2020-07-05 08:42 前端风云志 阅读(3530) 评论(0) 推荐(0)

Ant Design Mobile 覆盖默认的样式。
摘要:直接在css中这样写是不行的,完全没有效果。 .am-list-item.am-input-item { height: 36px; min-height: 30px; } 要像下面这样,加上global才有效果。 :global { .am-list-body { background-color 阅读全文

posted @ 2020-07-01 21:29 前端风云志 阅读(2152) 评论(0) 推荐(0)

gyp verb check python checking for Python executable "python2" in the PATH - noda-sass安装的艰难之路。
摘要:第一次安装出现如下错误: gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb `wh 阅读全文

posted @ 2020-07-01 21:12 前端风云志 阅读(14723) 评论(1) 推荐(0)

导航

关注我

前端风云志