vue使用successful实现全屏效果
1.安装
npm install --save screenfull
2.在需要使用的页面引入
import screenfull from ‘screenfull’
3.页面代码如下:
<template>
<span @click='clickFull'>全屏</span>
</template>
<script>
import<
npm install --save screenfull
2.在需要使用的页面引入
import screenfull from ‘screenfull’
3.页面代码如下:
<template>
<span @click='clickFull'>全屏</span>
</template>
<script>
import<