1. 程式人生 > >向瀏覽器添加一條數據

向瀏覽器添加一條數據

瀏覽器 數據 event IT lang rip nbsp utf sta

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>pushstate</title>
</head>
<body>
    <script type="text/javascript">
        window.history.pushState({}, "title", "#");
        window.addEventListener("popstate", function
(e) { }, false); </script> </body> </html>

向瀏覽器添加一條數據