橙光笔记

H5 history API

Original link: https://www.kai666666.com/2023/04/18/H5-history-API/ For the history object in JS, the three methods we most commonly use are back() , forward() , and go() . H5 has added pushState() and replaceState() to update the URL address without refreshing the page, as mentioned in this chapter The H5 history API also refers to these two methods. For […]

H5 history API Read More »

The Art of JavaScript DOM Programming

Original link: https://www.kai666666.com/2022/07/24/%E3%80%8AJavaScript-DOM-%E7%BC%96%E7%A8%8B%E8%89%BA%E6%9C %AF%E3%80%8B%E5%B0%8F%E8%AE%B0/ HTML comments can be used in Script blocks in HTML, even without endings. For example, the following code can run normally. 1 2 3 4 5 < script type = “text/JavaScript” > console.log ( 1 ); <!– print 1 1 after running –> console.log ( 1 ); </ script > 1

The Art of JavaScript DOM Programming Read More »