zoukankan      html  css  js  c++  java
  • jquery里边on方法

    我们在高版本写on方法的时候

    下边是一个例子,上边的未来元素没有加载,下边的未来元素可以加载
    <script>
    // $(".replyBt").on('click',
    //    function () {
    //        $("#commentReply textarea").attr("placeholder","回复@"+$(this).parent(".authorTxt").find(".authorName").text()+"...");
    //        $(this).parent(".authorTxt").find(".commentCon").append($("#commentReply").show());
    //    }
    //)
     $(document).on('click','.replyBt',
        function () {
            $("#commentReply textarea").attr("placeholder","回复@"+$(this).parent(".authorTxt").find(".authorName").text()+"...");
            $(this).parent(".authorTxt").find(".commentCon").append($("#commentReply").show());
        }
    ) 	
    </script>
    

      

  • 相关阅读:
    idea安装
    IntelliJ IDEA 简单使用
    git客户端安装
    一、AJAX
    一、JSP标签介绍,自定义标签
    注解
    线程
    网络编程Socket
    一 批量插入数据(使用批处理
    day87
  • 原文地址:https://www.cnblogs.com/aoxueshou/p/7366429.html
Copyright © 2011-2022 走看看