代码改变世界

随笔分类 -  html

reactnative debug工具 安装失败 yarn global add react-devtools
摘要:Error: EACCES: permission denied, mkdtemp 使用。yarn global add react-devtools --unsafe-perm=true 阅读全文

posted @ 2021-04-24 19:04 Captain林 阅读(153) 评论(0) 推荐(0)

plupload 获取视频时长
摘要:file 已经被拦截处理, file.getNative()获取真正的对象 let fileurl = URL.createObjectURL(file.getNative())let audioElement = new Audio(fileurl)audioElement.addEventLis 阅读全文

posted @ 2020-04-02 09:28 Captain林 阅读(630) 评论(0) 推荐(0)

qiniu 大文件上传 结合vue
摘要:1、先下载官方sdk https://github.com/qiniu/js-sdk/releases 2、打开demo1 直接粘贴这段代码到vue onmounted中。 3、npm 安装 "plupload": "qiniu-js": 两个依赖库 4、其中sdk有个传参bug 只需要传file 阅读全文

posted @ 2020-03-31 09:21 Captain林 阅读(428) 评论(0) 推荐(0)

出现了npm ERR! cb() never called!错误
摘要:执行npm i 命令时,出现了npm ERR! cb() never called!错误 解决方案: 1、首先清除你的npm缓存: sudo npm cache clean -f 一般情况执行完后再试下 应该就OK了 2、如果1方法不奏效的话,只能采用升级覆盖安装: 清除完缓存后,安装最新版本的No 阅读全文

posted @ 2018-11-15 14:27 Captain林 阅读(7823) 评论(0) 推荐(0)

html 原生tab切换js
摘要:$("#ulId li").on('click', function () { $("#li-container").children().hide(); $('#' + $(this).attr("id") + 'Container').show(); $("#Ulid").find('span' 阅读全文

posted @ 2018-03-09 17:07 Captain林 阅读(314) 评论(0) 推荐(0)

textarea文本域的高度随内容的变化而变化
摘要:用css控制textarea文本域的高度随内容的变化而变化,不出现滚动条. CSS代码: 复制代码 代码如下: .t_area{ width:300px; overflow-y:visible } <textarea class="t_area"> 随便在这里输入内容,textarea的高度会随着你 阅读全文

posted @ 2015-01-12 17:03 Captain林 阅读(26310) 评论(2) 推荐(0)

导航