js进行两个任务

$('#table_list input[type="checkbox"]').attr('checked', 'checked');

让所有的type为checkbox类型的全部选中 !

如果在紧接选中之后就执行另一个操作,比如拿着选中的数据回显示另一个界面,这个时候回去等到在反应过来 

我们就用到了 setTimeout(function(){  ...........    },1000);

猜你喜欢

转载自blog.csdn.net/Demo1109/article/details/88872250
今日推荐