很好奇~~
认证0级讲师
Isn’t it just through hash? Different operations are done through the hashchange event according to different hashes.
The specific API is History,兼容不支持该 API 的环境则改用 HashChangeEvent.
History
HashChangeEvent
If you want to understand the principle of implementation, you can start with the "state machine".
Isn’t it just through hash? Different operations are done through the hashchange event according to different hashes.
The specific API is
History
,兼容不支持该 API 的环境则改用HashChangeEvent
.If you want to understand the principle of implementation, you can start with the "state machine".