$('.list-item-subject-wk').each(function(){html
$(this).unbind("click");ajax
$(this).click(function(){this
var phase = $('#phase').val();url
var sub = $(this).attr("data-value");htm
$.ajax({get
url: U('Search/SzTinyCourse/getChoice'),it
type: 'POST',io
dataType: 'text',console
data: {ph:phase,s:sub},function
success: function (htmltext) {
$("#choice_navi").html(htmltext);
}
});
//刷新微課列表
$.ajax({
url: U('Search/SzTinyCourse/search'),
type: 'POST',
dataType: 'text',
data: {ph:phase,s:sub},
success: function (res) {
//alert("刷新列表");
$('#tiny_course_list').html(res);
},
error: function (msg) {
console.log('error');
}
});
});
});