2020年5月2日
摘要:
发现一个可以改变地址栏,而不导致页面刷新的东东。 Chrome, FF测试通过,不支持IE. 实现目标 页面的跳转(前进后退,点击等)不重新请求页面 页面URL与页面展现内容一致(符合人们对传统网页的认识) 在不支持的浏览器下降级成传统网页的方式 使用到的API history.state 当前UR 阅读全文
摘要:
1、创建元素节点:createElement document.createElement("p");//创建p标签; document.createTextNode("txt");//创建文本标签; 2、插入节点:appendchild:在要插入的元素节点上调用,他插入指定的节点使其成为那个节点的 阅读全文