要注意在function里添加e!!! 全局传参才有效!!!数据相关联
var gdata = {
schterms:'',
sorts:''
}
$('[data-role="select-types"]').click(function(e){
var _this = $(this);
$(this).addClass('active').siblings().removeClass('active');
gdata.schterms = _this.attr('data-val');
$('[data-role="videos-show"]').empty();
getStudentVideos(0,gdata.schterms,10);
});
$('[data-type="select"]').click(function(e){
var _this = $(this);
$(this).addClass('active').siblings().removeClass('active');
gdata.sorts = _this.attr('data-val');
$('[data-role="videos-show"]').empty();
getStudentVideos(0,gdata.schterms,gdata.sorts);
});