如何使用JavaScript获取HTML页面的标题?
Use document.title :(使用document.title :)
document.title
console.log(document.title)
<title>Title test</title>
1.4m articles
1.4m replys
5 comments
56.9k users