摘要:
browser-sync1.安装 cnpm i -g browser-sync2.运行 在你的文件所在目录,browser-sync start --server browser-sync init 修改 files server 阅读全文
摘要:
touch--单点 targetTouches、 changeTouches 多点: targetTouches--当前物体上的手指数 *不同物体上的手指不会互相干扰 不需要做多点触摸的时候 平均值: x=∑ 所有手指x /n y=∑ 所有手指y /n 手势识别:1.2. 多点触摸:1.避免影响—— 阅读全文
摘要:
targetTouches vs touches1.兼容 跟按下的位置相比,如果横向移动超过5px,锁定为水平;如果纵向移动超过5px,锁定为垂直1.阶段一、方向确定之前——压根不动2.阶段二、方向已经确定了,再动 阅读全文
摘要:
文字 CSS3 transform 3D: 1.X/Y/Z坐标轴 2.透视 ---------------------------------------------------------------------------... 阅读全文
摘要:
笔记 mysql.js server.js 1.html socket.io 1.html ws_server.js 阅读全文
摘要:
const crypto = require('crypto'); let md5 = crypto.createHash('md5'); let data = md5.update('15645634565').digest(); console.log(data.toString('hex')) 阅读全文
摘要:
定位 多进程 webworker this.onmessage=function (ev){ let {n1, n2}=ev.data; let result=n1+n2; this.postMessage(result);}; 阅读全文
摘要:
FormData——文件 1.文件上传——进度 oAjax.upload.onprogress=function (ev){ ev.loaded 完成 ev.total 总共 ev.loaded/ev.total =>0~1 }; --------------------------------------------------------... 阅读全文
摘要:
index.html 阅读全文
摘要:
express_server.js index.html 阅读全文