输入banner图图片脚本导航/分类

jquery取子节点及当前节点属性值的方法_jquery

分享下jquery取子节点及当前节点属性值的方法。

取子节点:

$(".menulink a").each(function(){
var id=this.id;
});

取当前节点: