MyUtil icon indicating copy to clipboard operation
MyUtil copied to clipboard

早期入门学习中记录和整理一些实用的笔记🎯

Results 2 MyUtil issues
Sort by recently updated
recently updated
newest added

想要一个1024的码

## 1111 html5提供了两种方式在页面中操作历史 history.pushState(state, title, url) 将当前URL和history.state加入到history中,并用新的state和URL替换当前, 不会造成页面刷新。 history.replaceState(state, title, url) 用新的state和URL替换当前, 不会造成页面刷新。 history.state 如果当前URL不是通过pushState或者replaceState产生的,那么history.state是null。 提供检测历史记录变化的事件popstate 每当处于激活状态的历史记录条目发生变化时,popstate事件就会在对应window对象上触发. 如果当前处于激活状态的历史记录条目是由history.pushState()方法创建,或者由history.replaceState()方法修改过的, 则popstate事件对象的state属性包含了这个历史记录条目的state对象的一个拷贝. 调用history.pushState()或者history.replaceState()不会触发popstate事件. popstate事件只会在浏览器操作如点击前进or后退按钮(JS调用也可), URL中"#"后面的字符串改变时触发. #### 2222 html5提供了两种方式在页面中操作历史 history.pushState(state, title, url) 将当前URL和history.state加入到history中,并用新的state和URL替换当前, 不会造成页面刷新。...