1234567891011
location.href.indexOf("/2/")>=0||location.href.indexOf("/6/")>=0
为什么用js呢,你用PHP不是更方便嘛!直接用PHP获取当前网址,就OK了