应用程序.js
var url = window.location.href;
console.log(window.location);
//getting the access token from url
var access_token = url.split("#")[1].split("=")[1].split("&")[0];
// get the userid
var userId = url.split("#")[1].split("=")[2].split("&")[0];
console.log(access_token);
console.log(userId);
网址是这样的 - http://localhost:8080/?code=11111145676dfhr78899900876# =
FFIVE
相关分类