📜  d-block d-none js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:01.048000             🧑  作者: Mango

代码示例1
chartElement.classList.contains('d-none') ? chartElement.classList.remove('d-none') : '';
!chartElement.classList.contains('d-block') ? chartElement.classList.add('d-block') : '';

noDataElement.classList.contains('d-block') ? noDataElement.classList.remove('d-block') : '';
!noDataElement.classList.contains('d-none') ? noDataElement.classList.add('d-none') : '';