![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
秃头的老三
周五来了,周末还会远吗?
展开
-
js 小知识 持续更新
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档js 小知识 持续更新使用步骤01-检查日期是否为周末02-获取数组中的唯一值(数组去重)03-检查变量是否为数组04-获取javascript语言的实际类型05-在结尾处截断字符串06-从中间截断字符串总结使用步骤01-检查日期是否为周末代码如下(示例):const isWeekend = (date) => [0, 6].indexOf(date.getDay()) !== -1;console.log(isWee.原创 2022-03-15 15:28:30 · 183 阅读 · 0 评论 -
window.print() 前端实现网页打印(封装) - 自定义页眉页脚
window.print 详解 - 自定义页眉页脚转载 2022-01-06 16:12:49 · 5921 阅读 · 14 评论 -
前端用vue写文件预览txt,pdf,doc|| docx,xls || xlsx 等格式文件
这里写自定义目录标题引入htmljs引入import mammoth from 'mammoth'import XLSX from 'xlsx'html <el-dialog fullscreen :visible.sync="previewDialogVisible"> <iframe v-if="pdfContent.length > 0" :src="pdfContent" width="100%" :height="HIfram" framebo原创 2021-11-29 10:47:00 · 3419 阅读 · 0 评论 -
JS Date小知识
获取当前时间 //获取当前时间 nowTime() { let now = new Date(); let _month = 10 > now.getMonth() + 1 ? "0" + (now.getMonth() + 1) : now.getMonth() + 1; let _day = 10 > now.getDate() ? "0" + now.getDate() : now.getDate(); let _hour = 10 &g原创 2021-11-08 14:58:59 · 78 阅读 · 0 评论 -
Elemetn(小知识)
// rules 规则 (element )// rules 规则 (element ) { required: true, message: "仅能输入数字,请输入正确格式!", trigger: "blur", max: 10, pattern: /^[0-9]*$/, },原创 2021-10-13 17:24:34 · 110 阅读 · 0 评论 -
CSS小知识
//滚动条消失术.el-main { background: #fff; height: calc(100vh - 140px); -ms-overflow-style: none; overflow: -moz-scrollbars-none; &::-webkit-scrollbar { width: 0 !important; } -ms-overflow-style: none; scrollbar-width: none;}...原创 2021-09-22 09:51:55 · 222 阅读 · 0 评论 -
uniapp自定义tabber底部导航栏 需求:根据用户权限动态改变tabber长度(数量)
<template> <cover-view class="uni-tabbar"> <cover-view class="uni-tabbar__item" v-for="(item, index) in tabbar" :key="index" @tap="changeTab(item)"> <cover-view class="uni-tabbar__bd"> <cov原创 2021-03-03 14:11:44 · 3449 阅读 · 5 评论