js正则表达式取id参数的值

2025-04-04 18:51:34
推荐回答(1个)
回答1:

var id="a.html?id=1234321&type=df".match(/id=(\d{7})/)[1]