这是我第一次在html页面中使用localstorage,其中有一个input元素,我可以在其中插入文本。当我重新加载我的页面时,我希望文本停留在那里,但它没有。 //function to store name on localstorage var name = document.getElementById("
我有一个问题,我的汉堡包菜单在页面加载时打开。它的功能与预期不符。如果我点击它,它会关闭,然后也会在点击时打开。menu links when the user clicks on the hamburger menu / bar icon */ var x = document.getElementById