I have the following code:
History.Adapter.bind(window,'statechange',function(){
console.log("triggered");
How can I trigger this function from anywhere in my code?
如果您使用的是History.js,请使用
History.pushState(data,title,url);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.