摘要:
window.open(url,'_blank','top=300,left=300,width=800,height=650,menubar=no,toolbar=no,status=no,scrollbars=yes' ) 阅读全文
摘要:
const arr2 = [{id: 1}, {id: 2}]; const value2 = {id: 3}; const index = arr2.findIndex(object => object.id value2.id); if (index -1) { arr2.push(value2 阅读全文
摘要:
一、查看所有键 document.onkeydown = function (event) { console.log('按下:' + event.key + '键:' + event.keyCode) } document.onkeydown = function (event) { if (ev 阅读全文
摘要:
// 随机数函数function getRandom(N,M)ireturn Math.floor(Math.random()*(M-N+1))+ N // 随机数 const random=getRandom(1,10) document.body.style.backgroundImage =` 阅读全文
摘要:
navigator.mediaDevices在目前以下三种情况下可以不报错 1. 地址为localhost:// 访问时 2. 地址为https:// 时 3. 为文件访问file:/// 阅读全文
摘要:
下载依赖 npm install vue3-print-nb --save main.js引入 import print from 'vue3-print-nb' 挂载 app.use(print); 自己写的额弹框表格 <el-dialog title="打印当前页面" v-model="dial 阅读全文
摘要:
下载依赖 npm i --save https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz npm install file-saver --save el-table添加id <el-table id="outTable" >//添加id 拼接导出函 阅读全文
摘要:
1.input中的剪切复制和粘贴分别对应的是"oncut","oncopy","onpaste" 禁止剪切复制和粘贴的方法如下: <input type="text" oncut="return false" onpaste="return false" oncopy="return false"> 阅读全文
摘要:
<canvas ref='canvas' height="360" width="600"></canvas> <div class="signature"> <button class="re-sign" ref="clearBtn">重新签名</button> </div> <script se 阅读全文
摘要:
<div class="inputs"> <input v-model.trim="inputname" type="text" class="FirstName" @change="changename()"> <span v-if="user_name" id="FirstName">单位全称 阅读全文