简体   繁体   中英

How can I data from url after a callback implemented to HTML page?

My html-page get callback from some social service. After a callback implemented I need to get some data from the url. Any idea how can I get the data from url after a callback implemented?

If you have something like http://www.example.com/?title=first&section=second

function GetUrlValue(VarSearch){
     var SearchStr=window.location.search.substring(1);
}

SearchStr gives the data: title=first&section=second . I hope you got the idea.

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