Html

<head>
    <title></title>
    <style type="text/css">
        #Text1
        {
            width: 97px;
        }
    </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function Button1_onclick() {
            localStorage.setItem("lastname", "Gates");
            alert(localStorage.getItem("lastname"));
            localStorage.removeItem("lastname");
        }

// ]]>
    </script>
</head>

  

posted @ 2017-04-20 21:48  埃斯梅拉达  阅读(235)  评论(0编辑  收藏  举报