读书人

jquery 基础知识小结

发布时间: 2012-09-08 10:48:07 作者: rapoo

jquery 基础知识总结
$('span[price] input[type=text]') :拿取下面的input元素
??<span price="3">
??????<input type="text" name="imperial.quantity" disabled="disabled" value="1"/>
??</span>
$('div',$(this).parents('div:first')):拿取该div的上(至少都是父节点)的第一个div节点
$('~ span:first',this): locates the first sibling of this that’s a <span> element.

延迟加载js文件——$.getScript

例子:??

?

?

jquery数组处理:
?

?

?

读书人网 >Web前端

热点推荐