// 安装 npm install screenfull --save-dev // 在需要使用全屏功能的组件中引入screenfull import screenfull from 'screenfull' // 使用 screenfull.toggle()