随笔分类 - HTML5
摘要:refer : https://www.cnblogs.com/kunmomo/p/12131818.html (跨域) https://segmentfault.com/a/1190000004502619 (iframe) https://imququ.com/post/content-secu
阅读全文
摘要:refer: https://juejin.im/post/5a9372895188257a6b06132e reflow 伤性能. 所以要闪. 有几个频密触发的东西要留意. 1. scroll 2. mouse move 3. animation 这些情况如果我们修改 dom 然后又导致 refl
阅读全文
摘要:更新: 2021-06-15 游览器 href 和 base href 绝对路径和相对路径 在没有 base href 的情况下 href="/about.html" 就是从 domain 开始走起, 算是绝对路径 href="../about.html" 往上走的相对路径 href="./abou
阅读全文
摘要:表单是 html 里面最常用到的东西了. 很多时候我们会写自定义的表单,或者直接用框架上层的方式, 比如用 Angular. 但是在做小项目的时候,可能没有必要上框架,那我们就会用到原生的表单了. 这里记入一下,比较冷门的细节. validation selectElt.setCustomValid
阅读全文
摘要:更新 : 2019-06-29 如果要监听 notification action 可以使用 notificationclick 常用的方式是,点击后打开 windows https://developers.google.com/web/updates/2015/03/push-notificat
阅读全文
摘要:著名的 qrcode 是 zxing https://github.com/zxing/zxing 基于 java, java 真的是轮子多啊... zxing 的 javascript 版本是 https://github.com/LazarSoft/jsqrcode 这个版本的代码非常的 old
阅读全文
摘要:参考 : http://air.ghost.io/recording-to-an-audio-file-using-html5-and-js/ (html5 基础) https://github.com/muaz-khan/RecordRTC https://github.com/webpack-c
阅读全文
摘要:这里我只会说说一些完成 file upload 的基础 API。很多项目我们需要上传文件。有简单的 input file, 有需要验证的,有需要压缩的(img),有需要分段的(video),有需要体验好(display on local, ajax & percent) 等等要完成以上的所有需求,我...
阅读全文