jquery中children()和children有什么区别?若children()是一个函数的话,children()[0]是什么?children.children等等,具体说一说下标及这些细微的区别,例如:$("#contactlist").children()[1].children()[0].innerHTML=$("
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/30 18:41:13
jquery中children()和children有什么区别?若children()是一个函数的话,children()[0]是什么?
children.children等等,具体说一说下标及这些细微的区别,
例如:
$("#contactlist").children()[1].children()[0].innerHTML=$(".contactname").val();
出现错误!
$("#contactlist").children()[1]=temp;
$(temp).children()[0].innerHTML=$(".contactname").val();就可以!
具体讲一讲!
还有,什么时候用children,什么时候用children().
$("#contactlist").children()[1].children()[0].innerHTML=$(".contactname").val();
这里面
$("#contactlist").children()[1]
执行完的时候 返回的是一个dom对象
children()方法是jQuery对象的方法 不出错才怪.
$($("#contactlist").children()[1]).children()[0].innerHTML=$(".contactname").val();
这样写就OK
PS:真心不懂您说的“什么时候用children”是什么意思.
乱啊!多简单的事看看api
jquery中children()和children有什么区别?若children()是一个函数的话,children()[0]是什么?children.children等等,具体说一说下标及这些细微的区别,例如:$(#contactlist).children()[1].children()[0].innerHTML=$(
jquery和jquery ui有什么不同
jquery easyui和jquery ui的区别
Jquery 选择器中(XXX,this)这后面的,和this
jquery,attr和parents,children的问题求详细的例子啊,我已经把这三者搞混了...
jquery手册中关于children([expr])的描述有这样一句话:children()只考虑子元素而不考虑所有后代元素.
jquery中$(this).parent() 什么意思?
JQuery中$(function() {...}代表什么意思?
jquery 中$(form :input) $(form input) 区别
jQuery parent.append和$after的区别
Jquery UI 和Bootstrap 有什么区别
请问那个jQuery包里面的jQuery.js和jQuery.min.js该用哪一个啊,有什么不一样吗
关于JQ:jquery.prototype和jquery.fn的作用和意义是不是一样的?
jQuery.prototype是什么意思本人刚学Jquery,没接触过prototype,为什么 jQuery中会包含prototype,prototype不是另一个JS库吗.
JQuery中$(document)是什么意思?感谢回答者www.jzzww.net
如何用jquery获取中输入的值?
jquery this和 $(“this”)和this的区别错了,jquery $(this)和 $(“this”)和this的区别.
jquery中的 :first和 :first-child有区别吗