【发布时间】:2010-04-21 04:28:36
【问题描述】:
通过使用document.referrer,我们将得到JavaScript中所有URL的引用,例如:
http://localhost/testwordpress/wp-admin/admin.php?page=thesis-options&upgraded=true
从这个输出中我们如何只提取查询字符串部分:
?page=thesis-options&upgraded=true
JavaScript中有什么方法吗?
【问题讨论】: