摘要: 手工转进制 // 7FF 16转10进制 console.log(15 + 15*16 + 7*16**2) 未完... 待续 阅读全文
posted @ 2019-03-31 22:16 Sampson1207 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 执行流程: 宏任务和微任务(一个宏任务配多个微任务):每次执行微任务队列会全部执行完并清空 执行结果 mainpromisemain2process.nextTick1promise thensetTimeoutprocess.nextTick2 图示: 阅读全文
posted @ 2019-03-31 11:38 Sampson1207 阅读(1279) 评论(0) 推荐(0) 编辑
摘要: A级 B级 让第二个元素的宽度为其他元素的三倍: 如果某子元素设置成flex-grow: 1; 其余子元素不设置flex-grow,则此元素占据所有剩余空间 内容垂直居中 C级 字体抗锯齿最好 body{ -moz-osx-font-smoothing: grayscale; -webkit-fon 阅读全文
posted @ 2019-03-13 17:49 Sampson1207 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 后端 index.js 阅读全文
posted @ 2019-02-09 17:40 Sampson1207 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 原理:客户端通过onopen的send发送数据,服务端通过message监听发送来的数据 socket.html server.js 阅读全文
posted @ 2019-02-09 11:11 Sampson1207 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 使用频率多:百度之间传数据也会使用 前端 a.html b.html 后端 a.js b.js 阅读全文
posted @ 2019-02-02 17:25 Sampson1207 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 前端 a.html b.html c.html 后端 a.js b.js 阅读全文
posted @ 2019-02-02 11:29 Sampson1207 阅读(346) 评论(0) 推荐(0) 编辑
摘要: a.html b.html 空页面 c.html 服务端 a.js b.js 阅读全文
posted @ 2019-02-01 19:01 Sampson1207 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 前端 a.html b.html 后端 a.js b.js 阅读全文
posted @ 2019-02-01 18:41 Sampson1207 阅读(145) 评论(0) 推荐(0) 编辑
摘要: index.html 后端 server1.js server2.js 阅读全文
posted @ 2019-02-01 16:42 Sampson1207 阅读(123) 评论(0) 推荐(0) 编辑