摘要: 1. Promise 承诺消除异步操作,用同步一样的方式,来书写异步代码 Promise.all:如果参数中 promise 有一个失败,此实例回调失败 Promise.race:如果参数中某个promise解决或拒绝,返回的 promise就会解决或拒绝。 Promise.allSettled:当 阅读全文
posted @ 2021-01-29 10:42 silent☺ 阅读(47) 评论(0) 推荐(0) 编辑
摘要: union 联合查询,查询出所有不重复的值 union All查询所有数据(包含重复的) except去除重复部分 intersect求重复部分 阅读全文
posted @ 2018-11-23 17:52 silent☺ 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一、前端知识体系 1、前端框架 Bootstrap: http://getbootstrap.com/ 阅读全文
posted @ 2018-05-15 18:01 silent☺ 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1、margin边距 是页面与浏览器之间的边距 一般网站的页面左边距和上边距都设置为0, 这样看起来页面不会有太多的空白。 阅读全文
posted @ 2018-05-15 10:54 silent☺ 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 什么是内网穿透 我的理解是:将您的本地主机公开到世界各地,便于测试和共享,无需混淆DNS或部署只是为了让其他人测试您的更改。 localtunnel 通过localtunnel就能把你的本地地址映射到一个公共地址,让其他用户也能访问,比如我本地地址localhost:8888,通过localtunn 阅读全文
posted @ 2018-05-10 16:58 silent☺ 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1. 设备像素比 iphone3的分辨率为320x480,1个css像素等于一个屏幕物理像素 iphone4的分辨率为640x960(苹果公司便推出了所谓的Retina屏),分辨率提高了一倍,导致同样大的屏幕上像素多了一倍,安卓设备上分为ldpi、mdpi、hdpi、xhdpi等不同的等级 wind 阅读全文
posted @ 2018-05-09 17:34 silent☺ 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 简单来说,浏览器缓存就是把一个已经请求过的Web资源(如html页面,图片,js,数据等)拷贝一份副本储存在浏览器中。缓存会根据进来的请求保存输出内容的副本。当下一个请求来到的时候,如果是相同的URL,缓存会根据缓存机制决定是直接使用副本响应访问请求,还是向源服务器再次发送请求。比较常见的就是浏览器 阅读全文
posted @ 2018-05-09 17:27 silent☺ 阅读(627) 评论(0) 推荐(0) 编辑
摘要: body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td { margin: 0; padding: 0;} body { b 阅读全文
posted @ 2018-05-09 17:21 silent☺ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1.判断是否为IE浏览器 function isIE() { if(!!window.ActiveXObject || "ActiveXObject" in window){ return "IE" }else{ return "!IE" } }console.log(isIE()); 2.判断浏览 阅读全文
posted @ 2018-05-09 17:17 silent☺ 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、获取当前域名: location.hostname 2、html字段值取值 this.onPostValue="<p> </p>" this.onPostValue.replace(/<\/?.+?>/g,"") 3、去除所有特殊符号 var str=phone.replace(/[\ |\~| 阅读全文
posted @ 2018-05-09 16:03 silent☺ 阅读(73) 评论(0) 推荐(0) 编辑