front/js
중첩 로딩 처리
juniKang
2022. 11. 9. 20:32
const reservLoadingView = {
ref: 0, // 중첩처리
show: function() {
++this.ref;
$('#loading-reservation').show();
},
hide: function() {
if (--this.ref < 1) {
$('#loading-reservation').hide();
}
}
}