How do I parse an URL with JavaScript (also with jQuery)?
For instance I have this in my string,
url = "http://example.com/form_image_edit.php?img_id=33"
I want to get the value of img_id
I know I can do this easily with PHP with parse_url()
, but I want to know how it is possible with JavaScript.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…