摘要: var img = new Image(); img.src = myChart.getDataURL({ type:"png", pixelRatio: 2, backgroundColor: '#fff'});downloadWeibo(img,"微博平台-事件传播脉络",myChart.getWidth(),myChart.getHeight()); =======... 阅读全文
posted @ 2016-05-05 18:16 lihuazhidao 阅读(9419) 评论(0) 推荐(0)
摘要: Submit 这种情况下,在移动端,点击submit 时,键盘会一直保持存在而不会消失直到focus到其他元素上, 此时需要将button.submit 放到label 外面 阅读全文
posted @ 2016-04-28 14:35 lihuazhidao 阅读(245) 评论(0) 推荐(0)
摘要: 图表有行坐标缺省y轴值时,将y轴却略值设为,,,,,, 阅读全文
posted @ 2016-04-21 18:07 lihuazhidao 阅读(550) 评论(0) 推荐(0)
摘要: //依赖 IE9及以下不支持 Blob.js canvas-toBlob.js FileSaver.js Examples 下载 阅读全文
posted @ 2016-04-20 15:27 lihuazhidao 阅读(2021) 评论(5) 推荐(0)
摘要: https://github.com/superhighfives/harp-gulp-browsersync-boilerplate https://gist.github.com/geelen/a5fcb013de67f680cb8d gulp配置 var gulp = require('gulp'); var browserSync = require('brows... 阅读全文
posted @ 2016-04-20 10:41 lihuazhidao 阅读(179) 评论(0) 推荐(0)
摘要: 在自己的华为手机上,用drag事件写拖曳移动时没有touch事件来的流畅 原理 dragstart 记录起始点和上次拖曳停留的位置position(x,y) 开始监听drag事件 drag 事件 获取拖曳的距离(dx,dy),设置元素移动 dragend 取消监听drag 事件 touch事件类似 touchstart 记录起始点... 阅读全文
posted @ 2016-04-19 14:36 lihuazhidao 阅读(371) 评论(0) 推荐(0)