1. Incompatible with promise questions
/ / is not compatible with the introduction of the < script SRC = "https://cdn.polyfill.io/v2/polyfill.min.js" > < / script > / / compatible with the introduction of the < script SRC = "https://cdn.bootcss.com/babel-polyfill/7.8.3/polyfill.js" > < / script >Copy the code
2. Incompatible with forEach methods
if(window.NodeList && ! NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; } if(window.HTMLCollection && ! HTMLCollection.prototype.forEach) { HTMLCollection.prototype.forEach = Array.prototype.forEach; }Copy the code