jquery当中grep怎么用
例 2.3
马克- to-win:马克 java社区:防盗版实名手机尾号: 73203。
<html>
<head>
<script language="javascript" src="jquery.min.js"></script>
<script language="javascript">
var aAr = [1, 9, 5, 6, 3];
var aRe = $.grep(aAr,function(value,index){
return (value > 5 && index > 2);
});
document.write("aAr: " + aAr + "<br>");
document.write("aRe: " + aRe);
</script>
</head>
<body>
</body>
</html>