• <tfoot id='QWJkc'></tfoot>
      <bdo id='QWJkc'></bdo><ul id='QWJkc'></ul>

  • <i id='QWJkc'><tr id='QWJkc'><dt id='QWJkc'><q id='QWJkc'><span id='QWJkc'><b id='QWJkc'><form id='QWJkc'><ins id='QWJkc'></ins><ul id='QWJkc'></ul><sub id='QWJkc'></sub></form><legend id='QWJkc'></legend><bdo id='QWJkc'><pre id='QWJkc'><center id='QWJkc'></center></pre></bdo></b><th id='QWJkc'></th></span></q></dt></tr></i><div id='QWJkc'><tfoot id='QWJkc'></tfoot><dl id='QWJkc'><fieldset id='QWJkc'></fieldset></dl></div>
      <legend id='QWJkc'><style id='QWJkc'><dir id='QWJkc'><q id='QWJkc'></q></dir></style></legend>

      <small id='QWJkc'></small><noframes id='QWJkc'>

      1. Jquery.Hover 不适用于动态元素

        Jquery.Hover not working for dynamic Element(Jquery.Hover 不适用于动态元素)
          <tbody id='REoNg'></tbody>

        <small id='REoNg'></small><noframes id='REoNg'>

        <i id='REoNg'><tr id='REoNg'><dt id='REoNg'><q id='REoNg'><span id='REoNg'><b id='REoNg'><form id='REoNg'><ins id='REoNg'></ins><ul id='REoNg'></ul><sub id='REoNg'></sub></form><legend id='REoNg'></legend><bdo id='REoNg'><pre id='REoNg'><center id='REoNg'></center></pre></bdo></b><th id='REoNg'></th></span></q></dt></tr></i><div id='REoNg'><tfoot id='REoNg'></tfoot><dl id='REoNg'><fieldset id='REoNg'></fieldset></dl></div>

          <legend id='REoNg'><style id='REoNg'><dir id='REoNg'><q id='REoNg'></q></dir></style></legend>
          • <bdo id='REoNg'></bdo><ul id='REoNg'></ul>

                  <tfoot id='REoNg'></tfoot>
                1. 本文介绍了Jquery.Hover 不适用于动态元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这是我的代码

                  $(".inboxfeedlist li").hover(function(e){alert('');}
                  

                  这不适用于动态创建的元素,即使我使用过

                  This is not working for dynamically created elements, even i have use

                  $(".inboxfeedlist li").bind('hover',function(){})
                  

                  也不行,代码有什么问题.

                  is also not working, what's problem with code.

                  推荐答案

                  使用live方法:

                  $(".inboxfeedlist li").live('hover', function(e){alert('');});
                  

                  附注 hover 确实需要两个回调函数,你的意思是 mouseover

                  A side note hover does take two callback functions, did you mean mouseover

                  这篇关于Jquery.Hover 不适用于动态元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社
                  ExecJS::ProgramError: SyntaxError: Reserved word quot;functionquot;(ExecJS::ProgramError: SyntaxError: 保留字“function)
                  Infinite scroll and will_paginate appending the #39;next page#39; of items multiple times(无限滚动和 will_paginate 多次附加项目的“下一页)
                  What is cleanest way to turn Array of JQuery Promises into a JQuery Promise of an Array?(将 JQuery Promise 数组转换为数组的 JQuery Promise 的最简洁方法是什么?)
                    <tfoot id='9MhGp'></tfoot>
                      <tbody id='9MhGp'></tbody>
                  1. <small id='9MhGp'></small><noframes id='9MhGp'>

                        • <legend id='9MhGp'><style id='9MhGp'><dir id='9MhGp'><q id='9MhGp'></q></dir></style></legend>

                            <bdo id='9MhGp'></bdo><ul id='9MhGp'></ul>

                            <i id='9MhGp'><tr id='9MhGp'><dt id='9MhGp'><q id='9MhGp'><span id='9MhGp'><b id='9MhGp'><form id='9MhGp'><ins id='9MhGp'></ins><ul id='9MhGp'></ul><sub id='9MhGp'></sub></form><legend id='9MhGp'></legend><bdo id='9MhGp'><pre id='9MhGp'><center id='9MhGp'></center></pre></bdo></b><th id='9MhGp'></th></span></q></dt></tr></i><div id='9MhGp'><tfoot id='9MhGp'></tfoot><dl id='9MhGp'><fieldset id='9MhGp'></fieldset></dl></div>