筆記編輯部分也是一個document元素,document.title是“Evernote”,不是網頁的標題“印象筆記網頁版”,如何獲取頁面第一個title

使用查找 title 元素,編輯框加載后還是顯示“Evernote”
var tit = document.querySelector("title")
console.log(tit.innerHTML)
uj5u.com熱心網友回復:
top.document.querySelector轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/267717.html
標籤:JavaScript
