返回到:DOM 对象:HTML DOM Document 对象
readyState 属性返回当前文档的状态(载入中……)。
该属性返回以下值:
document.readyState
浏览器支持:
所有主要浏览器都支持 readyState 属性
返回当前文档的载入状态:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Web176教程网(web176.com)</title> </head> <body> 载入状态: <script> document.write(document.readyState); </script> </body> </html>