Difference between revisions of "Template:SJTU-BioX-Shanghai/Alpha/Header"

Line 11: Line 11:
 
       evnt.preventDefault();
 
       evnt.preventDefault();
  
       var a = evnt.target; console.log(evnt.target, evnt.currentTarget);
+
       var a = evnt.currentTarget;
 
       var id = a.attributes["href"].nodeValue;
 
       var id = a.attributes["href"].nodeValue;
 
       var ele = document.getElementById(id.slice(1, id.length))
 
       var ele = document.getElementById(id.slice(1, id.length))

Revision as of 01:52, 17 August 2015