Commit b32061f8 by 梁建民

js

parent 0a071962
Showing with 3 additions and 3 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
var hrefUrl = window.location.pathname; var hrefUrl = window.location.pathname;
if (hrefUrl.indexOf('contact') > 1) { if (hrefUrl.indexOf('contact') > -1) {
$(".pc-nav-wrap ul li").eq(3).addClass('curr').siblings('li').removeClass('curr'); $(".pc-nav-wrap ul li").eq(3).addClass('curr').siblings('li').removeClass('curr');
} else if (hrefUrl.indexOf('product') > 1) { } else if (hrefUrl.indexOf('product') > -1) {
$(".pc-nav-wrap ul li").eq(2).addClass('curr').siblings('li').removeClass('curr'); $(".pc-nav-wrap ul li").eq(2).addClass('curr').siblings('li').removeClass('curr');
} else if (hrefUrl.indexOf('about') > 1) { } else if (hrefUrl.indexOf('about') > -1) {
$(".pc-nav-wrap ul li").eq(1).addClass('curr').siblings('li').removeClass('curr'); $(".pc-nav-wrap ul li").eq(1).addClass('curr').siblings('li').removeClass('curr');
} else { } else {
$(".pc-nav-wrap ul li").eq(0).addClass('curr').siblings('li').removeClass('curr'); $(".pc-nav-wrap ul li").eq(0).addClass('curr').siblings('li').removeClass('curr');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment