2018-05-16
展开全部
var elements = [];
var condition = false;
switch(selector)
{
case 0:
condition = i == num;
break;
case 1:
condition = i > num;
break;
case 2:
condition = i< num;
break;
}
jQuery.each(eleme,function(elem,i){
if(condition){
elements.push(elem)
}
});
你试试看
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询