An arrow function expression has a shorter syntax than a function expression and does not have its own this, arguments, super, or new.target. These function expressions are best suited for non-method functions, and they cannot be used as constructors.
不难看出上面的定义说出了箭头函数的一些特点:没有自己的this,arguments,super或 new.target,更适用于那些本来需要匿名函数的地方,并且它们不能用作构造函数。也就是意味着,如果在没有使用 this,arguments 或者 new 等前提下,你可以使用箭头函数替换原本的函数声明。
Are arrow function and funciton declaration equivalen
The Web Server Gateway Interface (WSGI) is a simple calling convention for web servers to forward requests to web applications or frameworks written in the Python programming language. ——[ 1 ] WSGI is the Web Server Gateway Interface. It is a specification that describes how a web server communicates with web applications, and how web applications can be chained together to process one request. WSGI is a Python standard described in detail in PEP 3333. ——[ 2 ]
上面三段话翻译过来的大致意思是:
Web 服务器网关接口(WSGI)是一种简单的调用约定,用于 Web 服务器将请求转发到用 Python 编程语言编写的 Web 应用程序或框架。
WSGI 是 Web 服务器网关接口。它描述了 web 服务器如何与 web 应用程序通信,以及如何将 web 应用程序链接在一起处理一个请求。
WSGI 是在 [**PEP 3333**](https://www.python.org/dev/peps/pep-3333) [3]中详细描述的 Python 标准。
HTTPS (HTTP Secure) is an adaptation of the Hypertext Transfer Protocol (HTTP) for secure communication over a computer network, and is widely used on the Internet.In HTTPS, the communication protocol is encrypted by Transport Layer Security (TLS), or formerly, its predecessor, Secure Sockets Layer (SSL). The protocol is therefore also often referred to as HTTP over TLS,or HTTP over SSL. The principal motivation for HTTPS is authentication of the accessed website and protection of the privacy and integrity of the exchanged data. It protects against man-in-the-middle attacks. The bidirectional encryption of communications between a client and server protects against eavesdropping and tampering of the communication.In practice, this provides a reasonable assurance that one is communicating without interference by attackers with the website that one intended to communicate with, as opposed to an impostor. Historically, HTTPS connections were primarily used for payment transactions on the World Wide Web, e-mail and for sensitive transactions in corporate information systems.[citation needed] In the late 2000s and early 2010s, HTTPS was increasingly used for protecting page authenticity on all types of websites, securing accounts and keeping user communications, identity and web browsing private. ————[1]
其翻译过来的大意如下:
Https(HTTPSecure)是超文本传输协议(HTTP)在计算机网络上进行安全通信的一种改编,在互联网上得到了广泛的应用。在HTTPS中,通信协议由传输层安全性(TLS)加密,或者以前的前身安全套接字层(SSL)加密。因此,该协议也经常被称为HTTP over TLS,或HTTP over SSL.