摘要:Javascript是单线程的,因此异步编程对其尤为重要. ES 6以前: * 回调函数* 事件监听(事件发布/订阅)* Promise对象 ES 6: * Generator函数(协程coroutine) ES 7: * async和await Refers: https://www.cnblog
阅读全文
02 2018 档案
摘要:Web服务有两种实现方式: 一是SOAP协议方式 二是REST方式。 SOAP是一套完整的实现Web服务的解决方案。这里有必要先简单了解SOAP方式的Web服务,然后对比SOAP方式,我们会发现REST方式欠缺了什么。 SOAP方式的Web服务中的Web服务描述语言(WSDL)和简单对象访问协议(S
阅读全文
摘要:Browser Work: 1、输入网址。 2、浏览器查找域名的IP地址。 3. 浏览器给web服务器发送一个HTTP请求 4. 网站服务的永久重定向响应 5. 浏览器跟踪重定向地址 现在,浏览器知道了要访问的正确地址,所以它会发送另一个获取请求。 6. 服务器“处理”请求,服务器接收到获取请求,然
阅读全文
摘要:HTTPS (HTTP Secure) is an adaptation of the Hypertext Transfer Protocol (HTTP) for secure communication over a computer network, and is widely used on
阅读全文
摘要:Browser vendors needed a way to add support for new features that were not yet standardized, but without messing up later changes or creating incompat
阅读全文
摘要:1. Selector Different types of selectors: Selectors can be divided into the following categories: Simple selectors: Match one or more elements based o
阅读全文
摘要:1. Selector Substring matching attribute selectors, E[attribute^="value"], E[attribute$="value"], E[attribute*="value"] . New pseudo-classes: :target,
阅读全文