function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-1ef1230a":1,"chunk-21fa0bee":1,"chunk-0adca8d2":1,"chunk-244cdedb":1,"chunk-6af17791":1,"chunk-6fedeada":1,"chunk-c9b9be90":1,"chunk-d7247b7c":1,"chunk-47e10cad":1,"chunk-683399a1":1,"chunk-03720830":1,"chunk-2f0f1cce":1,"chunk-acf59a90":1,"chunk-82083b32":1};c[e]?t.push(c[e]):0!==c[e]&&n[e]&&t.push(c[e]=new Promise((function(t,n){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-1ef1230a":"6100e171","chunk-21fa0bee":"56fbb52f","chunk-2d0b8e66":"31d6cfe0","chunk-0adca8d2":"63520455","chunk-244cdedb":"2221f682","chunk-6af17791":"9319e02c","chunk-6fedeada":"94367281","chunk-c9b9be90":"e91eee33","chunk-d7247b7c":"a5c95ea8","chunk-47e10cad":"595ad8f8","chunk-683399a1":"cf4c0c65","chunk-03720830":"fd8c5284","chunk-2f0f1cce":"baf031a5","chunk-acf59a90":"4439e8cd","chunk-82083b32":"fd49455a"}[e]+".css",r=i.p+a,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],l=s.getAttribute("data-hre
时间: 2023-06-26 15:03:48 浏览: 674
js.rar(react初学者简单测试用babel.js,react-development.js,react-dom.js)
这是一个 JavaScript 函数,它实现了动态加载 CSS 文件的功能。它接受一个参数 e,表示要加载的 CSS 文件名。如果该文件已经被加载过了,则直接返回该文件的 exports 对象;否则,根据文件名和一些固定的字符串生成该文件的 URL,并创建一个新的 Promise 对象来加载该文件。如果加载成功,则将该 Promise 对象的状态设置为 resolved,并返回该文件的 exports 对象;否则,将该 Promise 对象的状态设置为 rejected,并抛出一个错误。该函数还使用了一个对象 c,记录每个 CSS 文件的 Promise 对象,防止同一个文件被重复加载。
阅读全文