Babel and Polyfill

Babel: Check the official www.babeljs.cn/docs/

Babel is a JavaScript compiler and toolchain capable of converting code written in ECMAScript 2015+ syntax into backward compatible JavaScript syntax. Compatible with all browser versions. Implementation of grammar conversion, source conversion. Note: Babel can only new JavaScript syntax, not transform new apis. Through the third-party module Polyfill, the code implements native apis that the browser does not support.Copy the code