- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的页面上有一堆按钮元素,在 mouseover
上,我想抓取所选按钮的祖先,然后将它们显示为 html 或数组 inside导航栏。到目前为止,这是我的 javascript,它根本不起作用。有什么想法吗?
$( document ).ready(function() {
$("*").on.("mouseover", function() {
var treeTraversal = $(this).parents().map(function(){
return this.tagName;}).get().join(", ");
$("<span>").after("<h2>" + treeTraversal + "<h2>");
});
最佳答案
删除on
之后的句点
http://codepen.io/tmorrow-hyphensolutions/pen/JYVLdz
$(document).ready(function() {
$("*").on("mouseover", function() {
var treeTraversal = $(this).parents().map(function() {
return this.tagName;
}).get().join(", ");
alert(treeTraversal);
$("<span>").after("<h2>" + treeTraversal + "<h2>");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="srg">
<div class="g">
<!--m-->
<div class="rc" data-hveid="28">
<h3 class="r"><a href="http://api.jquery.com/on/" onmousedown="return rwt(this,'','','','1','AFQjCNFJf1Y9q7iSptlkW-9S_Ki4f0hD8w','NhJPBzK8gcIkyyzrmFjnDg','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFggdMAA','','',event)" target="_blank">.on() | jQuery API Documentation</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm bc">api.jquery.com › Events › Event Handler Attachment</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b0" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IHzAA"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IIDAA">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:8rVcz6sYu0cJ:api.jquery.com/on/+&cd=1&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','1','AFQjCNFRzU6U8v-SD-acmExsnmywuvXzbA','C2O6G-mvsEfY1SSmHzNwjg','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAghMAA','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:api.jquery.com/on/+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwgiMAA">Similar</a>
</li>
</ul>
</div>
</div>
<div class="crc">
<div class="crl" data-async-context="res:0;ri:;site:api.jquery.com" data-async-trigger="cra-0-filled" jsaction="crd.tglpop" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ5CsIIzAA">jQuery<span class="_Bs"></span>
</div>
<div class="cri" jsaction="crd.popclk">
<div id="cra-0-filled" data-jiis="up" data-async-type="cra" data-async-context-required="site,ri,res" class="y yp" jsaction="asyncFilled:crd.rmload"></div>
<div class="cr-load">Loading...</div>
</div>
</div>
</div><span class="st">The .on() method attaches event handlers to the currently selected set of elements in the <em>jQuery</em> object. As of <em>jQuery</em> 1.7, the .on() method provides all ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="36">
<h3 class="r"><a href="http://www.w3schools.com/jquery/event_on.asp" onmousedown="return rwt(this,'','','','2','AFQjCNH44PiKdeqPZjPI21kJePxn9iVL1w','5PIhxQOkdnFLzIjo3gdhvw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFgglMAE','','',event)" target="_blank">jQuery on() Method - W3Schools</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">www.w3schools.com/<b>jquery</b>/event_on.asp</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b1" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IJjAB"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IJzAB">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:YTIHxjS-2WAJ:www.w3schools.com/jquery/event_on.asp+&cd=2&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','2','AFQjCNG6qo34j9mEX_qelzFDnT0CI1EYzA','mL8lsXUzoXj-j35I3pSWvQ','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAgoMAE','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:www.w3schools.com/jquery/event_on.asp+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwgpMAE">Similar</a>
</li>
</ul>
</div>
</div>
<div class="crc">
<div class="crl" data-async-context="res:1;ri:;site:w3schools.com" data-async-trigger="cra-1-filled" jsaction="crd.tglpop" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ5CsIKjAB">W3Schools<span class="_Bs"></span>
</div>
<div class="cri" jsaction="crd.popclk">
<div id="cra-1-filled" data-jiis="up" data-async-type="cra" data-async-context-required="site,ri,res" class="y yp" jsaction="asyncFilled:crd.rmload"></div>
<div class="cr-load">Loading...</div>
</div>
</div>
</div><span class="st">As of <em>jQuery</em> version 1.7, the on() method is the new replacement for the bind(), live() and delegate() methods. This method brings a lot of consistency to the API,<wbr> ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="43">
<h3 class="r"><a href="http://www.andismith.com/blog/2011/11/on-and-off/" onmousedown="return rwt(this,'','','','3','AFQjCNGZOdfVh2BXopsozHWYJLMiHaFi4g','BGdFVXWwMyTLkZQ8wAo1bw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFggsMAI','','',event)" target="_blank">Using jQuery .on() and .off() - Andi Smith</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">www.andismith.com/blog/2011/11/on-and-off/</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b2" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0ILTAC"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8ILjAC">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:y-hA0v9zG8wJ:www.andismith.com/blog/2011/11/on-and-off/+&cd=3&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','3','AFQjCNGncjEU5RN4W85c35ZU2_fJh5sqYw','dZ2BeFUUkajUbBaKUUKCvQ','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAgvMAI','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:www.andismith.com/blog/2011/11/on-and-off/+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwgwMAI">Similar</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Nov 10, 2011 - </span>With the release of <em>jQuery</em> 1.7 on November 3rd came two new ways to attach event handlers - .on() and .off() . Whilst possibly not the most ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="50">
<h3 class="r"><a href="http://stackoverflow.com/questions/8110934/direct-vs-delegated-jquery-on" onmousedown="return rwt(this,'','','','4','AFQjCNGwAbe5yxKciYpf1HmvVSHJD2wyfA','H2pKTCHI1e3Kswt0qino0Q','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFggzMAM','','',event)" target="_blank">javascript - Direct vs. Delegated - jQuery .on() - Stack Overflow</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">stackoverflow.com/questions/8110934/direct-vs-delegated-<b>jquery-on</b></cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b3" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0INDAD"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8INTAD">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:kfKCB8W6O08J:stackoverflow.com/questions/8110934/direct-vs-delegated-jquery-on+&cd=4&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','4','AFQjCNH8XPlE4fUW33d7b96W02J65CKYxA','XvltZ34CXmgq8BRMkOtdRw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAg2MAM','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:stackoverflow.com/questions/8110934/direct-vs-delegated-jquery-on+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwg3MAM">Similar</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Nov 13, 2011 - </span>I am trying to understand this particular difference between the direct ... Case 1 (
<wbr>direct): $("div#target span.green").on("click", function() {...});.</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="57">
<h3 class="r"><a href="http://stackoverflow.com/questions/8608145/jquery-on-method-with-multiple-event-handlers-to-one-selector" onmousedown="return rwt(this,'','','','5','AFQjCNG3A5QbaTby2LssEhuWZsYABzMY1Q','Cc9hq3o0t2AA5tXi-OmOTA','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFgg6MAQ','','',event)" target="_blank">javascript - JQuery .on() method with multiple event ...</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">stackoverflow.com/.../<b>jquery-on</b>-method-with-multiple-event-handlers-to...</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b4" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IOzAE"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IPDAE">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:1nvmIzHsJ4YJ:stackoverflow.com/questions/8608145/jquery-on-method-with-multiple-event-handlers-to-one-selector+&cd=5&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','5','AFQjCNGsUSw1q47GclaT0-xw9gQ7Nn8tDw','FrhwVViTTrHsR0p9X5Z3Fw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAg9MAQ','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:stackoverflow.com/questions/8608145/jquery-on-method-with-multiple-event-handlers-to-one-selector+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwg-MAQ">Similar</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Dec 22, 2011 - </span>That's the other way around. You should write: $("table.planning_grid").on({ mouseenter: function() { // Handle mouseenter... }, mouseleave: function() ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="64">
<h3 class="r"><a href="http://stackoverflow.com/questions/8462027/jquery-on-method-on-multiple-selectors" onmousedown="return rwt(this,'','','','6','AFQjCNHbozVSbvA7zGVoSaz3WQXtRYW6gw','2FMXRhPAaTmfi8-mhMdpAg','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFghBMAU','','',event)" target="_blank">jQuery on() method on multiple selectors - Stack Overflow</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">stackoverflow.com/questions/.../<b>jquery-on</b>-method-on-multiple-selectors</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b5" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IQjAF"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IQzAF">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:5P_KmFYLMBYJ:stackoverflow.com/questions/8462027/jquery-on-method-on-multiple-selectors+&cd=6&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','6','AFQjCNFTBFtIVBHMibxxiq4TackeqipWTA','Ntr2K6L1CllzCb8bwXGPuA','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAhEMAU','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:stackoverflow.com/questions/8462027/jquery-on-method-on-multiple-selectors+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwhFMAU">Similar</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Dec 11, 2011 - </span>If you're trying to use .on() so that you can listen to events on DOM object that may be created after you make the initial .on() call, then the most ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="71">
<h3 class="r"><a href="http://stackoverflow.com/questions/15090942/jquery-event-handler-not-working-on-dynamic-content" onmousedown="return rwt(this,'','','','7','AFQjCNGQRJeFz4pJKr-WYeQSgKeOp3qanA','rpzJCLxlbpzbbYUGna-BUw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFghIMAY','','',event)" target="_blank">Jquery event handler not working on dynamic content ...</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">stackoverflow.com/.../<b>jquery</b>-event-handler-not-working-on-dynamic-co...</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b6" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0ISTAG"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8ISjAG">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:HlLIHpXKQ7IJ:stackoverflow.com/questions/15090942/jquery-event-handler-not-working-on-dynamic-content+&cd=7&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','7','AFQjCNFXOX_k1de1jqHnBCf2TgKrIsWPxg','KdRnXJmU0-WqAU1NWZ1wWQ','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAhLMAY','','',event)"
target="_blank">Cached</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Feb 26, 2013 - </span>You have to add the selector parameter, otherwise the event is directly bound instead of delegated, which only works if the element already exists (so ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="77">
<h3 class="r"><a href="http://weblog.west-wind.com/posts/2013/Jun/12/Replacing-jQuerylive-with-jQueryon" onmousedown="return rwt(this,'','','','8','AFQjCNH2aoWYimIJBcRriJDzF-xrGyrOJQ','eWz8cz8Vh6RE4Vy2lVqm6w','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFghOMAc','','',event)" target="_blank">Replacing jQuery.live() with jQuery.on() - Rick Strahl's Web ...</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">weblog.west-wind.com/posts/2013/.../Replacing-<b>jQuery</b>live-with-<b>jQuery</b>...</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b7" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0ITzAH"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IUDAH">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:0lmueC_HH1AJ:weblog.west-wind.com/posts/2013/Jun/12/Replacing-jQuerylive-with-jQueryon+&cd=8&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','8','AFQjCNEme9STE-hmv97uiK8edaCxAAK8og','b1TBIijjmTlAvZJsiFFxyw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAhRMAc','','',event)"
target="_blank">Cached</a>
</li>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="/search?newwindow=1&safe=active&espv=2&biw=1920&bih=955&q=related:weblog.west-wind.com/posts/2013/Jun/12/Replacing-jQuerylive-with-jQueryon+jquery+on&tbo=1&sa=X&ved=0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQHwhSMAc">Similar</a>
</li>
</ul>
</div>
</div>
</div><span class="st"><span class="f">Jun 12, 2013 - </span>In <em>jQuery</em> 1.9 and later the <em>jQuery</em>.live() function has finally been removed which has caused me a bit of upgrade trouble. While <em>jQuery</em>.live() has ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="84">
<h3 class="r"><a href="https://www.codecademy.com/forum_questions/51205802e1738f7cce000002" onmousedown="return rwt(this,'','','','9','AFQjCNHKIeuhWKwOsU9XATx7ak997qhmeg','KdfKRvXAJgFNy_XWRevKKw','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFghVMAg','','',event)" target="_blank">How to run jquery on local machine | Codecademy</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">https://www.codecademy.com/.../51205802e1738f7cce000...</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b8" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IVjAI"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IVzAI">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:3art-hmBPRIJ:https://www.codecademy.com/forum_questions/51205802e1738f7cce000002+&cd=9&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','9','AFQjCNGiEWjfeOL5RBvSIyVsg-lDMMrU8g','YqfskRg-sa91JCIncDiz1w','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAhYMAg','','',event)"
target="_blank">Cached</a>
</li>
</ul>
</div>
</div>
<div class="crc">
<div class="crl" data-async-context="res:8;ri:;site:codecademy.com" data-async-trigger="cra-8-filled" jsaction="crd.tglpop" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ5CsIWTAI">Codecademy<span class="_Bs"></span>
</div>
<div class="cri" jsaction="crd.popclk">
<div id="cra-8-filled" data-jiis="up" data-async-type="cra" data-async-context-required="site,ri,res" class="y yp" jsaction="asyncFilled:crd.rmload"></div>
<div class="cr-load">Loading...</div>
</div>
</div>
</div><span class="st">I'm trying to move all this code to my local machine, but I cannot get the script.js to run. I put the HTML, CSS, and JS in the same folder, and it looks like the HTML ...</span>
</div>
</div>
</div>
<!--n-->
</div>
<div class="g">
<!--m-->
<div class="rc" data-hveid="90">
<h3 class="r"><a href="https://www.codecademy.com/forum_questions/55be6dd5d3292f851a00067c" onmousedown="return rwt(this,'','','','10','AFQjCNFS1Z_TSMznAYbCtapBeisdAsWmuA','wm1RcWplcb6J_e6PXz9Xww','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQFghbMAk','','',event)" target="_blank">one of function in jQuery .on() | Codecademy</a></h3>
<div class="s">
<div>
<div class="f kv _SWb" style="white-space:nowrap"><cite class="_Rm">https://www.codecademy.com/.../55be6dd5d3292f851a000...</cite>
<div class="action-menu ab_ctl">
<a class="_Fmb ab_button" href="#" id="am-b9" aria-label="Result details" aria-expanded="false" aria-haspopup="true" role="button" jsaction="m.tdd;keydown:m.hbke;keypress:m.mskpe" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ7B0IXDAJ"><span class="mn-dwn-arw"></span>
</a>
<div class="action-menu-panel ab_dropdown" role="menu" tabindex="-1" jsaction="keydown:m.hdke;mouseover:m.hdhne;mouseout:m.hdhue" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQqR8IXTAJ">
<ul>
<li class="action-menu-item ab_dropdownitem" role="menuitem"><a class="fl" href="http://webcache.googleusercontent.com/search?q=cache:l4osBjpDoeoJ:https://www.codecademy.com/forum_questions/55be6dd5d3292f851a00067c+&cd=10&hl=en&ct=clnk&gl=us" onmousedown="return rwt(this,'','','','10','AFQjCNH1_jjMjre3YXyAKeuaBANXAJU00w','DTLCB08h3zoDEpPplWsvDA','0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQIAheMAk','','',event)"
target="_blank">Cached</a>
</li>
</ul>
</div>
</div>
<div class="crc">
<div class="crl" data-async-context="res:9;ri:;site:codecademy.com" data-async-trigger="cra-9-filled" jsaction="crd.tglpop" data-ved="0ahUKEwjxka_JkKLJAhWFHT4KHbPJCYUQ5CsIXzAJ">Codecademy<span class="_Bs"></span>
</div>
<div class="cri" jsaction="crd.popclk">
<div id="cra-9-filled" data-jiis="up" data-async-type="cra" data-async-context-required="site,ri,res" class="y yp" jsaction="asyncFilled:crd.rmload"></div>
<div class="cr-load">Loading...</div>
</div>
</div>
</div><span class="st">Can someone explain what ".on()" it is and how it works in <em>jQuery</em>? The explanation on preview on 13/14 Modifying HTML Elements, I do not really understand it ...</span>
</div>
</div>
</div>
<!--n-->
</div>
</div>
关于javascript - 在导航栏中将 parents() 显示为 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33846887/
我的Angular-Component位于一个flexbox(id =“log”)中。可以显示或隐藏flexbox。 我的组件内部有一个可滚动区域,用于显示日志消息。 (id =“message-li
我真的很困惑 有一个 phpinfo() 输出: MySQL 支持 启用 客户端 API 版本 5.5.40 MYSQL_MODULE_TYPE 外部 phpMyAdmin 显示: 服务器类型:Mar
我正在研究这个 fiddle : http://jsfiddle.net/cED6c/7/我想让按钮文本在单击时发生变化,我尝试使用以下代码: 但是,它不起作用。我应该如何实现这个?任何帮助都会很棒
我应该在“dogs_cats”中保存表“dogs”和“cats”各自的ID,当看到数据时显示狗和猫的名字。 我有这三个表: CREATE TABLE IF NOT EXISTS cats ( id
我有一个字符串返回到我的 View 之一,如下所示: $text = 'Lorem ipsum dolor ' 我正在尝试用 Blade 显示它: {{$text}} 但是,输出是原始字符串而不是渲染
我无法让我的链接(由图像表示,位于页面左侧)真正有效地显示一个 div(包含一个句子,位于中间)/单击链接时隐藏。 这是我的代码: Practice
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 4 年前。 Improve this ques
最初我使用 Listview 来显示 oracle 结果,但是最近我不得不切换到 datagridview 来处理比 Listview 允许的更多的结果。然而,自从切换到数据网格后,我得到的结果越来越
我一直在尝试插入一个 Unicode 字符 ∇ 或 ▽,所以它显示在 Apache FOP 生成的 PDF 中。 这是我到目前为止所做的: 根据这个基本帮助 Apache XSL-FO Input,您
我正在使用 node v0.12.7 编写一个 nodeJS 应用程序。 我正在使用 pm2 v0.14.7 运行我的 nodejs 应用程序。 我的应用程序似乎有内存泄漏,因为它从我启动时的大约 1
好的,所以我有一些 jQuery 代码,如果从下拉菜单中选择了带有前缀 Blue 的项目,它会显示一个输入框。 代码: $(function() { $('#text1').hide();
当我试图检查 Chrome 中的 html 元素时,它显示的是 LESS 文件,而 Firefox 显示的是 CSS 文件。 (我正在使用 Bootstrap 框架) 如何在 Chrome 中查看 c
我是 Microsoft Bot Framework 的新手,我正在通过 youtube 视频 https://youtu.be/ynG6Muox81o 学习它并在 Ubuntu 上使用 python
我正在尝试转换从 mssql 生成的文件到 utf-8。当我打开他的输出 mssql在 Windows Server 2003 中使用 notepad++ 将文件识别为 UCS-2LE我使用 file
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我正在尝试执行单击以打开/关闭一个 div 的功能。 这是基本的,但是,点击只显示 div,当我点击“关闭”时,没有任何反应。 $(".inscricao-email").click(function
假设我有 2 张卡片,屏幕上一次显示一张。我有一个按钮可以用其他卡片替换当前卡片。现在假设卡 1 上有一些数据,卡 2 上有一些数据,我不想破坏它们每个上的数据,或者我不想再次重建它们中的任何一个。
我正在使用 Eloquent Javascript 学习 Javascript。 我在 Firefox 控制台上编写了以下代码,但它返回:“ReferenceError:show() 未定义”为什么?
我正在使用 Symfony2 开发一个 web 项目,我使用 Sonata Admin 作为管理面板,一切正常,但我想要做的是,在 Sonata Admin 的仪表板菜单上,我需要显示隐藏一些菜单取决
我试图显示一个div,具体取决于从下拉列表中选择的内容。例如,如果用户从列表中选择“现金”显示现金div或用户从列表中选择“检查”显示现金div 我整理了样本,但样本不完整,需要接线 http://j
我是一名优秀的程序员,十分优秀!