mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-21 19:22:45 +08:00
19 lines
626 B
JavaScript
19 lines
626 B
JavaScript
layui.use(['jquery', 'helper'], function () {
|
|
|
|
var $ = layui.jquery;
|
|
var helper = layui.helper;
|
|
|
|
if ($('#tab-courses').length > 0) {
|
|
var $tabCourses = $('#tab-courses');
|
|
helper.ajaxLoadHtml($tabCourses.data('url'), $tabCourses.attr('id'));
|
|
}
|
|
if ($('#tab-favorites').length > 0) {
|
|
var $tabFavorites = $('#tab-favorites');
|
|
helper.ajaxLoadHtml($tabFavorites.data('url'), $tabFavorites.attr('id'));
|
|
}
|
|
if ($('#tab-friends').length > 0) {
|
|
var $tabFriends = $('#tab-friends');
|
|
helper.ajaxLoadHtml($tabFriends.data('url'), $tabFriends.attr('id'));
|
|
}
|
|
|
|
}); |