例如说我有:
<a href="http://www.example.com/this/is/my/path.html">Blah</a>
我只需要返回这个“/this/is/my/path.html”部分.
想法?我正在使用jQuery,如果它有帮助..
谢谢!
$('a')[0].pathname;