简体   繁体   中英

How should I use history.js

I am a beginner to JS. and I am learning how to use HTML history API to chnage the URL. Act , I want to append query string parameters to the URL after Ajax call is made. Which files do I need to include in my code, is it just history.js? I dont know how to use this API(not asking about the coding part of that).

an dafter wiriting the pushstate method, do I need to give popstate also? Basically , if I have used Pushstate to append query String parameters to URL, DO I always nee dto give popstate()? Thanks iin advance

尝试阅读本文,它解释了您需要的一切http://html5doctor.com/history-api/

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM