随笔分类 -  Js/CSS/HTML

1 2 3 4 5 ··· 8 下一页

任意promise串行执行算法 - 童彪
摘要:// 任意promise串行执行算法 - 童彪 阅读全文

posted @ 2019-12-27 16:07 童彪 阅读(273) 评论(0) 推荐(0)

underscore.js -2009年发布的js库
摘要:2009 Underscore.js 0.1.0发布 Underscore一个JavaScript实用库,提供了一整套函数式编程的实用功能,但是没有扩展任何JavaScript内置对象。它是这个问题的答案:“如果我在一个空白的HTML页面前坐下, 并希望立即开始工作, 我需要什么?“...它弥补了部 阅读全文

posted @ 2019-09-04 20:49 童彪 阅读(182) 评论(0) 推荐(0)

listenTo - backbone.js
摘要:文档: https://www.html.cn/doc/backbone/ 阅读全文

posted @ 2019-09-04 19:51 童彪 阅读(412) 评论(0) 推荐(0)

require - 引入文件
摘要:加载 阅读全文

posted @ 2019-09-02 19:16 童彪 阅读(1459) 评论(0) 推荐(0)

【深入】 - AST抽象语法树
摘要:参考: https://segmentfault.com/a/1190000016231512 阅读全文

posted @ 2019-08-23 14:08 童彪 阅读(190) 评论(0) 推荐(0)

ajax 'Content-Type': 'multipart/form-data' ->文件上传
摘要:'Content-Type': 'multipart/form-data' :指定传输数据为二进制数据,例如图片、mp3、文件 阅读全文

posted @ 2019-08-20 18:47 童彪 阅读(3836) 评论(0) 推荐(0)

bug-解决微信页面input键盘不回弹问题
摘要:pageReturn () { this.$refs.phoneValue.blur(); this.$refs.verifyCode.blur(); setTimeout(() => { window.scrollTo(0, 0); }, 100); ... 阅读全文

posted @ 2019-07-31 15:49 童彪 阅读(364) 评论(0) 推荐(0)

imput placeholder 移动端不居中问题
摘要:input{ height: 100%; } input::-webkit-input-placeholder { display: flex; align-items: center; line-height: 1.5; //解决不垂直居中的问题 } input:-moz-placeholder 阅读全文

posted @ 2019-07-29 21:39 童彪 阅读(127) 评论(0) 推荐(0)

css滚动
摘要:css 滚动transform: translateY(-100px);jquery $(box).height(); //获取元素高度$(box).scrollTop();//获得元素的滚动条高度 阅读全文

posted @ 2019-05-24 10:47 童彪 阅读(108) 评论(0) 推荐(0)

JavaScript设计模式
摘要:1.工厂模式 - 该模式抽象了创建具体对象的过程 -工厂模式解决了创建多个相似对象的问题,但没有解决对象识别问题(既怎样知道一个对象的类型) 2.构造函数模式 -使用了new操作符,new操作符经历的步骤 0.1创建一个新对象 02.将构造函数的作用域赋给新对象 (隐藏this就指向了新对象) 03 阅读全文

posted @ 2019-03-27 13:08 童彪 阅读(187) 评论(0) 推荐(0)

旋转
摘要:@keyframes rotate{ 0%{ transform: totate(0deg); } 100%{ transform: totate(360deg); } } .bg{ animation:rotate 1s linear 0.2s infinite; } 阅读全文

posted @ 2019-03-12 11:19 童彪 阅读(112) 评论(0) 推荐(0)

stylus含有的特性
摘要:Stylus 冒号可有可无 分号可有可无 逗号可有可无 括号可有可无 变量 插值(Interpolation) 混合(Mixin) 数学计算 强制类型转换 动态引入 条件表达式 迭代 嵌套选择器 父级引用 Variable function calls 词法作用域 内置函数(超过 60 个) 语法内 阅读全文

posted @ 2019-03-11 13:09 童彪 阅读(108) 评论(0) 推荐(0)

设置组件局部样式原理-属性选择器
摘要:1.使用css 属性选择器 实现大型项目中 组件内部css样式独立,不影响全局样式。既给元素增加独有属性 阅读全文

posted @ 2019-01-03 10:55 童彪 阅读(185) 评论(0) 推荐(0)

js代码技巧
摘要:1.js 中不常用的处理方法 阅读全文

posted @ 2018-12-10 14:20 童彪 阅读(129) 评论(0) 推荐(0)

css动画
摘要:源码地址github: 动画 https://github.com/daneden/animate.css 手势 https://github.com/takhello/hammer.js 中文:https://www.cnblogs.com/qianduanjingying/p/5812139.h 阅读全文

posted @ 2018-12-05 09:09 童彪 阅读(105) 评论(0) 推荐(0)

css 高度塌陷
摘要:浮动导致元素脱离正常文档流; 阅读全文

posted @ 2018-11-28 21:50 童彪 阅读(139) 评论(0) 推荐(0)

h5 图片生成
摘要:createImg(store, data) { let timer = setTimeout(function (params) { let _canvas = document.querySelector(".setPictureSection"); var w = parseInt(window.getComputedStyle(_canvas).width... 阅读全文

posted @ 2018-11-26 17:33 童彪 阅读(229) 评论(0) 推荐(0)

li之间的间隙问题
摘要:1.间隙是有代码格式中的换行符产生,对代码进行压缩处理或手动删除换行就好; 阅读全文

posted @ 2018-11-26 09:16 童彪 阅读(131) 评论(0) 推荐(0)

text-align: justify;浏览器、安卓手机不兼容问题
摘要:https://segmentfault.com/a/1190000013146385 阅读全文

posted @ 2018-11-22 10:39 童彪 阅读(191) 评论(0) 推荐(0)

js -history.back(-1)和history.go(-1) 区别
摘要:既然history.back(-1)和history.go(-1)都是返回之前页面, history.back(-1)//直接返回当前页的上一页,,是个新页面 history.go(-1)//也是返回当前页的上一页,不过表单里的数据全部还在 history.back(-1)//直接返回当前页的上一页 阅读全文

posted @ 2018-09-16 21:53 童彪 阅读(2651) 评论(0) 推荐(0)

1 2 3 4 5 ··· 8 下一页

导航