【发布时间】:2009-12-17 21:30:14
【问题描述】:
我不是 javascript 大师,但我需要创建一个脚本来完成以下内容。
如果 body id="index" 添加类"current-selected" 到锚标签 where href=index.php 如果 body id="services" 添加 class="current-selected" 到锚标记 where href=services.php 等等
这有意义吗?有人可以帮忙吗?
谢谢!
【问题讨论】:
-
欢迎来到 StackOverflow。第一个问题好!