習慣沉默2017-05-15 16:51:52
Isn’t it just through hash? Different operations are done through the hashchange event according to different hashes.
PHP中文网2017-05-15 16:51:52
The specific API is History
,兼容不支持该 API 的环境则改用 HashChangeEvent
.
If you want to understand the principle of implementation, you can start with the "state machine".