📜  如何在javascript代码示例中从url获取id

📅  最后修改于: 2022-03-11 15:01:14.260000             🧑  作者: Mango

代码示例1
var baseUrl = (window.location).href; // You can also use document.URL
var koopId = baseUrl.substring(baseUrl.lastIndexOf('=') + 1);
alert(koopId)//503