1.数据中添加或者删除指定元素
var arr=[‘red‘,‘yello‘,‘blue‘];
arr.push(‘green‘); //添加元素
arr = $.grep(arr,function(v){
return v != ‘yellow‘;
}) ; //移出值为“yellow”的元素
2.jquery动态添加或者移除style
$(‘#id‘).css(‘background‘,‘yellow‘); //添加背景色
$(‘#id‘).removeAttr(‘style‘); //移除style