以前一直不知道JavaScript对于HTML的操作精髓不在于Function。。
而在于HTML DOM。。。。╮(╯▽╰)╭
demo : https://134.175.139.216/dom2.html
narrative:
1)window / history / document / screen 都是object
2)修改html的body tag中的内容需要通过document来调用
3)document需要通过window调用,但是 window.document 可以省略写成 documenet
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport