比如我有如下url地址 我想找出以&t=开头的,并且得到后面的数字
http://localhost:8080/search/...所有&t=1
http://localhost:8080/search/...所有&t=3
http://localhost:8080/search/...所有&t=18
因为后面的这个数字是会变的,所以我想找出这个数字
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
var regUrl = /&t=d+$/先匹配以‘&t=数字’结尾的,找出来。
再
这么个思路