1
即时通讯使用这种表达来自www.mysite.com/products/watches
抓住当前的URL路径目录/products/
/\/(.*?)\//
所以我尝试使用表达式
<ul> <li><a href="/home.htm">home</a></li>
<li><a href="/products/watches">watches</a></li>
<li><a href="/services/watch-repair">repairs</a></li>
<li><a href="/support/refund">refund</a></li> </ul>
使用正则表达式匹配当前网址路径与导航路径?
发现有/products/
列表项这是我迄今为止。 here is a better example on fiddle
哇!我有很多学习要做。花了我的时间才想出来,你在两分钟内找到了解决方案,谢谢你的帮助。 – user1119742