摘要: interface LoadImages { [propName: string]: string}export function loadImages(sources:LoadImages, callback?:Function){ let count = 0, images:any = {}, 阅读全文
posted @ 2019-05-05 15:54 雾雨云露 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 下面看下linux删除非空文件夹 rm -rf 文件夹名字 阅读全文
posted @ 2018-10-30 11:31 雾雨云露 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1.canvas图片跨域问题 let img = new Image; img..crossOrigin = "Anonymous"; img.src='xxx.png'+new Date().getTime(); 2.<canvas style='width:300px;height:'300px 阅读全文
posted @ 2018-09-30 10:56 雾雨云露 阅读(138) 评论(0) 推荐(0) 编辑
摘要: open ~/.ssh 找到id_rsa.pub文件 就可以了 阅读全文
posted @ 2018-09-05 15:47 雾雨云露 阅读(1983) 评论(0) 推荐(0) 编辑
摘要: //这种方法适合不用滚动页面 若页面内容过长 将不能滑动$("body").css({'touch-action': 'none'});document.body.addEventListener('touchmove', (e) => { e.preventDefault(); e.stopPro 阅读全文
posted @ 2018-09-05 10:15 雾雨云露 阅读(1783) 评论(0) 推荐(0) 编辑
摘要: 一、简单介绍 history 中的操作 1.window.history.back(),后退 2.window.history.forward(),前进 3.window.history.go(num),前进或后退指定数量历史记录 4.window.history.pushState(state, 阅读全文
posted @ 2018-08-22 18:16 雾雨云露 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.js监听div滚动 请求数据 react<div className='box' onScroll={this.moreAddRecord}> moreAddRecord(e){ let eleTotalHeight = e.target.scrollHeight; let eleOffset 阅读全文
posted @ 2018-08-08 15:26 雾雨云露 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.npm install react react-dom --save 2.npm install webpack --save-dev 3.项目目录 4.package.josn 1 { 2 "name": "my-app", 3 "version": "0.1.0", 4 "private": 阅读全文
posted @ 2018-07-30 14:35 雾雨云露 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1:多行文本溢出 /* autoprefixer: on */2.滚动条隐藏***注意***设置-webkit-scrollbar ios滑动的时候 还是有滚动条完美解决的方法 移动端设置padding-bottom:10px;margin-bottom:-10px;3.按压:active ios不 阅读全文
posted @ 2018-07-20 10:33 雾雨云露 阅读(314) 评论(0) 推荐(0) 编辑
摘要: var gulp = require('gulp'); var del = require('del'); var rev = require('gulp-rev'); var nano = require('gulp-cssnano'); var uglify = require('gulp-ug 阅读全文
posted @ 2018-07-13 16:42 雾雨云露 阅读(167) 评论(0) 推荐(0) 编辑