<span style="color: #bf9bf8">$</span><span style="color: #ffffff">(</span><span style="color: #66d9ef">function</span><span style="color: #ffffff">(){
</span><span style="color: #f72671">pushHistory</span><span style="color: #ffffff">();
</span><span style="color: #6ccab8;font-weight: bold">window</span><span style="color: #ffffff">.</span><span style="color: #6ccab8">addEventListener</span><span style="color: #ffffff">(</span><span style="color: #ffe792">"popstate"</span><span style="color: #ffffff">,</span><span style="color: #66d9ef">function</span><span style="color: #ffffff">(</span><span style="color: #bf9bf8">e</span><span style="color: #ffffff">){
</span><span style="color: #6ccab8;font-weight: bold">location</span><span style="color: #ffffff">.</span><span style="color: #6ccab8;font-weight: bold">href</span><span style="color: #f72671">=</span><span style="color: #ffe792">'</span><span style="color: #ffe792;font-family: '宋体'">跳转的</span><span style="color: #ffe792">URL'</span><span style="color: #ffffff">;
</span><span style="color: #ffffff">    });
</span><span style="color: #ffffff">
</span><span style="color: #66d9ef">function </span><span style="color: #f72671">pushHistory</span><span style="color: #ffffff">() {
</span><span style="color: #66d9ef">var </span><span style="color: #a6e22e">state </span><span style="color: #f72671">= </span><span style="color: #ffffff">{
</span><span style="color: #6ccab8;font-weight: bold">title</span><span style="color: #f72671">: </span><span style="color: #ffe792">"title"</span><span style="color: #ffffff">,
</span><span style="color: #6ccab8;font-weight: bold">url</span><span style="color: #f72671">: </span><span style="color: #ffe792">"#"
</span><span style="color: #ffffff">};
</span><span style="color: #6ccab8;font-weight: bold">window</span><span style="color: #ffffff">.</span><span style="color: #6ccab8;font-weight: bold">history</span><span style="color: #ffffff">.</span><span style="color: #6ccab8">pushState</span><span style="color: #ffffff">(</span><span style="color: #a6e22e">state</span><span style="color: #ffffff">, </span><span style="color: #ffe792">"title"</span><span style="color: #ffffff">, </span><span style="color: #ffe792">"#"</span><span style="color: #ffffff">);
</span><span style="color: #ffffff">    }
</span><span style="color: #ffffff">});</span>