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

jQuery中filter(),not(),split()使用方法_jquery

filter()和not():
代码如下:

输出 hello
alert($("p").filter(".selected").html());
//输出 How are you?
alert($("p").not(".selected").html());
});



Hello

How are you?





split():
代码如下: