nby2016

.click(fn)

.parents("property")    //包含多个上级(不包括根级别)的属性

(function() {
        $("").ready(function() {
              $(".menu1 button").click(function(){
                  alert($(this).attr("url"));
                  $(this).parents("form").attr("action",$(this).attr("url"));
              });
        });
    })();

 

分类:

技术点:

相关文章: