还是不使用jQuery:var myTag = document.getElementById('Anchor').search.split('=')[1]; 示例: http://jsfiddle.net/B6GYB/1/ I am having an anchor link in aspx page like:<a id="Anchor"class="myAnchor" href="Myproject/Mypage.aspx?myTag=asp">Go</a>I need to access the "myTag" value using jquery.How to do this? 解决方案 You could do this:var myTag = $('#Anchor')[0].search.split('=')[1];Example: http://jsfiddle.net/B6GYB/Or not using jQuery:var myTag = document.getElementById('Anchor').search.split('=')[1];Example: http://jsfiddle.net/B6GYB/1/ 这篇关于jQuery href锚值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!