-
GEE说:
ChatGPT 说:
GEE说:
下面我告诉你什么是core.js:It is the most popular and the most universal polyfill of the JavaScript standard library, which provides support for the latest ECMAScript standard and proposals, from ancient ES5 features to bleeding edge features like iterator helpers, and web platform features closely related to ECMAScript, like structuredClone.
It is the most complex and comprehensive polyfill project. At the time of publishing this post, core-js contains about a half thousand polyfill modules with different levels of complexity - from Object.hasOwn or Array.prototype.at to URL, Promise or Symbol — that designed to work together. With another architecture, each of them could be a separate package - however, it is not so convenient.
It is maximally modular — you can easily (or even automatically) choose to load only the features you will be using. It can be used without polluting the global namespace (someone calls such a use case "ponyfill").
It is designed for integration with tools and provides all that's required for this — for example, @babel/preset-env, @babel/transform-runtime, and similar SWC features are based on core-js.
It is one of the main reasons why developers can use modern ECMAScript features in their development process each day for many years, but most developers just don't know that they have this possibility because of core-js since they use core-js indirectly as it's provided by their transpilers / frameworks / intermediate packages like babel-polyfill / etc.
It is not a framework or a library, which usage require the developer to know their API, periodically look at the documentation, or at least remember that he or she is using it. Even if developers use core-js directly — it’s just some lines of import or some lines in the configuration (in most cases — with mistakes, since almost no one read the documentation), after that, they forget about core-js and just use provided by core-js features from web-standards — but sometimes this is the most of JS standard library that they use.
About 9 billion NPM downloads / 250 million NPM downloads for a month, 19 million dependent GitHub repositories (global ⋃ pure) - big numbers, however, they do not show the real spread of core-js. Let's check it.I wrote a simple script that checks the usage of core-js in the wild by the Alexa top websites list. We can detect obvious cases of core-js usage and used versions (only modern).
At this moment, this script running on the TOP 1000 websites detects usage of core-js on 52% of tested websites. Depending on the phase of the moon (the list, websites, etc. are not constants), results may vary by a few percent. However, it’s just a naive detection on initial pages using a modern browser that loses many cases, manual check shows that it’s additional dozens of percent. For example, let's leave the initial pages of some websites from the screenshot above where core-js was not found by this script, without repetition of each company (at first — MS that's already on the screenshot) websites (be patient, after the series of screenshots the number of pictures will decrease):
So, yes, core-js is used almost everywhere.
继续告诉你:With such a manual check, you can find core-js on about 75-80 of the top 100 websites while the script found it on about 55-60. On a larger sample the percentage, of course, decreases.
Wappalyzer allows detection of used technologies, including core-js, with a browser plugin and has previously shown interesting results, but now on their website, all the most popular technologies' public results are limited to only about 5 million positives. Statistics based on Wappalyzer results are available here and show core-js on 41% and 44% of 8 million mobile and 5 million desktop tested pages. Built With at this moment shows core-js on 54% of TOP 10000 sites (however, I'm not sure about the completeness of their detection and see the graph from another reality).
Anyway, we can say with confidence that core-js is used by most of the popular websites. Even if core-js is not used on the main site of any large corporation, it's definitely used in some of their projects.
What JS libraries are more widespread on websites? It’s not React, Lodash, or any other most talked-about library or framework, I am pretty sure only about "good old" jQuery.
And core-js is not only about websites frontend — it's used almost everywhere where JavaScript is used — but I think that's more than enough statistics.
However, for the above reasons, almost no one remembers that he or she uses core-js.
Why am I posting this? No, not to show how cool I am, but to show how bad everything is. Read on.
哎呀, OpenAI接口可能出问题了,请稍后再试!我这就PM站长~ @malaohu
-
sunjh说:
怎么样找简历比较快?
1、注册一个招聘网站,在招聘网站上搜索你想要的简历。
2、使用社交网络,比如LinkedIn、Facebook等来搜索简历。
3、利用搜索引擎,比如Google、Bing等搜索相关简历。
4、利用招聘职位分类网站,比如CareerBuilder、Indeed等搜索简历。
5、利用简历分享网站,比如Github、Stackoverflow等搜索简历。
6、利用职位推荐引擎,比如Jobscan、Monster等搜索简历。
7、利用简历管理系统,比如Taleo、Greenhouse等搜索简历。 -
香菜说:
org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers. 这是什么问题造成的
?
这是由于将过多数据写入响应头而引起的。为了解决此问题,您可以在连接器上增加maxHttpHeaderSize,或者将响应头中的数据量减少。
-
for culture说:
Fatal error detected
Failed to extract
C:\Users Enkll PycharmProjects unittest data Spare parts test parts list.xt: failed to open target file!fopen: Invalid argument 这是什么问题造成的?这可能是由于文件路径中包含无效字符或者文件路径不正确导致的。请检查路径,确保它正确并且避免使用特殊字符。
-
for culture说:
先有鸡还是先有蛋?
这个问题没有确切的答案。一种观点认为先有鸡,另一种观点认为先有蛋。
-
690779301gagacui说:
网页内容的设计如何写代码,请教我如何设计网页、写代码
网页设计和代码编写是一个系统性的过程,具体应该如何设计和编写取决于你要实现的目的。
首先,你需要明确你的目标,确定网站的内容,确定网站的功能和你想要实现的界面效果,并确定好网站的访问者需求。然后,你可以根据你确定的内容,绘制出网站的页面架构和导航架构,确定网站的每个页面的布局,并绘制出网站的原型图。
接下来,你可以根据原型图,使用HTML、CSS进行网页的布局,并使用JavaScript实现网页的动态效果。另外,你还可以使用相关的框架和库来提升网页的开发效率。最后,你可以通过测试和调试,确保网页正常地运行,并兼容所有的浏览器环境。
-
@ChatGPT Unhandled exception in script
Failed to execute script 'test k Spare parts case' due to unhandled exception: 'NoneType' object has no attribute 'write'
Traceback (most recent call last):
File "test_k_Spare_parts_case.py", line 27, in <module>
class TestUnit9(unittest.TestCase):
File "test_k_Spare_parts_case.py", line 165, in TestUnit9
unittest.main()
File "unittest\main.py", line 101, in init
File "unittest\main.py", line 271, in runTests
File "unittest\runner.py", line 191, in run
File "unittest\runner.py", line 114, in printErrors
File "unittest\runner.py", line 26, in writeln
File "unittest\runner.py", line 21, in getattr
AttributeError: 'NoneType' object has no attribute 'write' 这个报错是什么原因造成的? -
for culture说:
Unhandled exception in script
Failed to execute script 'test k Spare parts case' due to unhandled exception: 'NoneType' object has no attribute 'write'
Traceback (most recent call last):
File "test_k_Spare_parts_case.py", line 27, in
class TestUnit9(unittest.TestCase):
File "test_k_Spare_parts_case.py", line 165, in TestUnit9
unittest.main()
File "unittest\main.py", line 101, in init
File "unittest\main.py", line 271, in runTests
File "unittest\runner.py", line 191, in run
File "unittest\runner.py", line 114, in printErrors
File "unittest\runner.py", line 26, in writeln
File "unittest\runner.py", line 21, in getattr
AttributeError: 'NoneType' object has no attribute 'write' 这个报错是什么原因造成的?这个报错是因为在函数中调用了一个不存在的属性所导致的。检查你的代码,确认你调用的属性是否存在,如果不存在,修正相关代码。
-
春风吹说:
The most frequent question I get as an author is How do you find time to write? It’s a great question.
There are a couple of ways to answer.
First, I’m a stay at home mom, so I have a lot of down time. My kids are in school, and I’m free during the day. I also don’t watch much television or spend a lot of time on the internet.
Second, I make a point to set aside time to write each day. I usually start my day early and write for an hour before anyone else is awake. I also try to write for a few hours every evening after my kids are in bed.
Third, I prioritize my writing. I make it a priority in my life, and I do whatever it takes to fit it into my schedule. I make sure I have time to write each day, even if it means sacrificing other things.
Fourth, I’m organized. I use a calendar to keep track of my deadlines and projects, and I have a writing plan that I follow. I also use a to-do list to keep track of what I need to do each day.
Finally, I’m motivated. Writing is something I’m passionate about, and that helps me stay on track. I also have a strong sense of discipline, which helps me stay focused on my goals.
These are the things that help me find time to write. I hope they’ll help you too!