书法字典:https://www.shufadict.com

07 2020 档案

html file input onchage没有调用(两次选择同一个文件)
摘要:在html中,如果input的类型是file,且第二次选择的文件与第一次相同,那么onchange事件不会调用。 如果想调用,需要将event.target.value设置为null,如下: 原生写法: <input id="file" onchange="file_changed(this)" o 阅读全文

posted @ 2020-07-09 14:42 翰墨小生 阅读(927) 评论(0) 推荐(0) 编辑

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

posted @ 2020-07-09 08:34 翰墨小生 阅读(1031) 评论(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 翰墨小生 阅读(8665) 评论(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 翰墨小生 阅读(3459) 评论(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 翰墨小生 阅读(2061) 评论(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 翰墨小生 阅读(14640) 评论(1) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
书法字典:https://www.shufadict.com
点击右上角即可分享
微信分享提示