jquery .children()[1]

来源:互联网 发布:数据执行保护删除不了 编辑:程序博客网 时间:2024/05/19 19:16
$("#contactlist").children()[1].children()[0].innerHTML=$(".contactname").val();这里面$("#contactlist").children()[1]执行完的时候 返回的是一个dom对象 children()方法是jQuery对象的方法。
$($("#contactlist").children()[1])
 这样写就OK