Ohne weiteres werde ich einfach alle an alle veröffentlichen.
<Script> $ (function () {// Highlight Current/Active Link Link Navigation zur Bestimmung der aktuellen aktiven Navigation $ ('ul.main-menu li a'). Jeweils (Funktion () {var wo = window.location.href.substring (window.Location.href.lastindexof ('/') + 1, Window.Location. ($ (this) .attr ('href') == (wo + ".html"))) {$ (this) .Parent (). AddClass ('Active'); $ (this) .Parents (). AddClass ('Active'); "Syd" == wo) && ($ (this) .attr ('href') == "dbs.html")) {$ (this) .Parent (). AddClass ('Active'); $ (this) .Parents (). AddClass ('Active'); homepage*/$ (". Main-menu a"). click (function () {// Das aktuelle Li auf Active $ (this). $ (this) .PARENT ('li'). Geschwister ('. Active "). Find (" I: First "). ToggleClass (" Glyphicon-Minus "); // alert ($ (this) .Index ()); // Klickstile anderer Navigationen und Collapse $ (this). Parent (' li '). Blings (". Active").Das obige ist das vom Editor eingeführte JavaScript -Navigationsskript, um die aktuelle Navigation zu bestimmen. Ich hoffe, es wird für alle hilfreich sein. Wenn Sie Fragen haben, hinterlassen Sie mir bitte eine Nachricht und der Editor wird allen rechtzeitig antworten. Vielen Dank für Ihre Unterstützung auf der Wulin.com -Website!