当前位置:网站首页>Document. How to use and listen for readyState
Document. How to use and listen for readyState
2022-06-22 00:34:00 【October oooo】
Document.readyState How to use and listen
Document. readyState There are three states
loading: The document is still loadinginteractive: The body of the document has been loaded , But attached pictures 、js、css What's still loadingcomplete: Loading complete
Listening usage
document.onreadystatechange = event => {
console.log(event)
console.log(document.readyState)
}
When document When the state changes , Will trigger docuemnt.onreadstatechange event , The contents of this event are as follows :

document.onreadystatechange = event => {
console.log(event.timeStamp, document.readyState)
}
You can see the event changes corresponding to the time :

边栏推荐
猜你喜欢

Neural networks and support vector machines for machine learning

滴滴工程效能平台建设之路

从云鲸率先布局上门服务,看其如何用服务冲破行业“封锁线”

HMS Core机器学习服务身份证识别功能,实现信息高效录入

Go Web 编程入门:验证器
![Infant name [adjacency matrix and DFS of connected components]](/img/60/83da6ce2fd2336fe1c4aead3260b77.png)
Infant name [adjacency matrix and DFS of connected components]

How does the system integration project management engineer (soft exam intermediate) prepare for the exam?

All kinds of FPN in object detection

Katalon recoder common commands
![[next] passhref is missing appears after nextjs is packaged](/img/86/e1dd1a3ffcdcf749cda565756e99db.png)
[next] passhref is missing appears after nextjs is packaged
随机推荐
American tourist visa interview instructions, let me focus!
AttributeError: ‘WebDriver‘ object has no attribute ‘w3c‘
We sincerely invite elastic stack developers to become CSDN elastic cloud community administrators
You have a chance, here is a stage
[roarctf2019] gold 6 years
[node] node uses MySQL connection pool
【愚公系列】2022年06月 通用职责分配原则(九)-受保护变量原则
[sword finger offer] 43 Number of occurrences of 1 in integers 1 to n
[next] the component definition is missing display name in the next JS package
The tangled truth about NFT and copyright
存储api备忘录
Katalon recoder common commands
TCP/IP--路由选择
客户端建设及调优实践
珂朵莉树 范围查询 chtholly tree Old driver tree
katalon Recoder常用命令
【Try to Hack】nmap
关于 NFT 和版权的纠结真相
rabbit:do_ run_ postlaunch_ phase/0 line 932
数据工程系列精讲(第三讲): Data-centric AI 之特征工程