New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

np-history

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

np-history

主要是SPA用,对不支持history.pushState的情况使用hash处理

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
8
-27.27%
Maintainers
1
Weekly downloads
 
Created
Source

#history兼容性补丁包 主要是SPA用,对不支持history.pushState的情况使用hash处理

//changeState
history[pushState | replaceState]([state|null, title|null, url|null, onCallback|null, offCallback]);
//listener
history[onback | onforward | onstatechange | onpopstate](func);
//browser
history[back | forward | reload]

FAQs

Package last updated on 05 Nov 2015

Related posts