获取文档标题

const title = document.title

设置文档标题

document.title = 'Hello World'