SOURCE

let action = 'RESUME';
switch (action) {
    case 'PLAY':
        console.log('重新开始播放视频');
        break;
    case 'PAUSE':
        console.log('暂停播放视频');
        break;
    case 'RESUME':
        console.log('继续播放视频');
        break;
    case 'STOP':
        console.log('停止播放视频');
        break;
}
console 命令行工具 X clear

                    
>
console