04 2019 档案

摘要:什么是web componets, 它的出现是为了什么? web components旨在提供一套制作可重用的封装性好的自定义元素的标准。 它包括四部分: customElements -- 这是一个基于CustomeElementRegistry类生成的对象,用于注册自定义元素,如customEl 阅读全文
posted @ 2019-04-12 13:34 被爱浸润的智慧体 阅读(716) 评论(0) 推荐(0)
摘要:解构数组 var [a,b]=[1,2]; a //1 b //2 var [a,b]=[1,2,3,4]; a //1 b //2 var [a,,b]=[1,2,3,4]; a //1 b //3 var a,b; [a=3,b=2]=[1]; //默认值 a //1 b //2 var [a, 阅读全文
posted @ 2019-04-10 11:33 被爱浸润的智慧体 阅读(618) 评论(0) 推荐(0)
摘要:缓存机制 一、缓存位置及其优先级: 1 Service Worker 2 Memory Cache 3 Disk Cache 4 Push Cache 二、缓存策略 强缓存 设置expires或cache-control cache-control可以设置的值,如下: expires需要和cach- 阅读全文
posted @ 2019-04-01 17:07 被爱浸润的智慧体 阅读(560) 评论(0) 推荐(0)