應(yīng)用程序.jsvar 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);網(wǎng)址是這樣的 - http://localhost:8080/?code=11111145676dfhr78899900876# =
“Uncaught TypeError: Cannot read property 'split'
慕碼人2483693
2023-05-19 15:10:13