- 博客(16)
- 收藏
- 关注
原创 项目杂记ennen
for (var i = 0; i < dataSrc.length; i++) { var res = dataSrc.indexOf('&', i + 1); i += res; } keyWordusername = Reflect.ownKeys(data); //获取键名 //用@的 const path = require(“path”) function resolve(dir) { return path.join(__dirn...
2022-04-28 18:26:31 92
原创 js new 时间
return new Date().toLocaleString(“zh”, { hour12: false, year: “numeric”, month: “2-digit”, day: “2-digit”, hour: “numeric”, minute: “numeric”, second: “numeric”, });
2021-01-28 16:50:40 79
原创 node-mondb操作
1 下载链接: https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.5-signed.msi/download 2 查询下载是否成功: 打开 Dos窗口: mongo输入;+ enter 如果安装成功会返回一个版本号: 然后 上述为安装程序挺简单的: 安装好后程序如下: \首先在...
2021-01-20 16:13:36 121
原创 arrshuzhu
/** auth: weilan github: https://github.com/hql7 description: 一个数组操作函数库 */ // 从树形数据中递归筛选目标值 function valInDeep(arr = [], val, id, childs) { return arr.reduce((flat, item) => { return flat.concat( item[id] === val ? item : valInDeep(item[childs] || [],
2021-01-15 15:59:54 108
原创 pc端css自动适应
const px2rem = require(‘postcss-px2rem’) const postcss = px2rem({ // 基准大小 baseSize,需要和rem.js中相同 remUnit: 100, exclude: /^(.ivu-)|(.el-)KaTeX parse error: Expected 'EOF', got '}' at position 3: / }̲) //vue - confi…/ }) module.exports = { lintOnSave: true, c
2020-12-17 17:43:09 909
原创 在vue中的一些使用处理:
mounted() { const timer = setInterval(() => { … }, 1000); this.$once(‘hook:beforeDestroy’, () => clearInterval(timer)???? } 如果渲染完该页面然后进入的一个页面开启了一个定时器,最好选用上述情况 mounted() { this.timer = setInterval(() => { … }, 1000); }, beforeDestroy() { //这个是退出本页的
2020-11-11 11:30:16 91
翻译 导出excel
let str = res.headers["content-disposition"]; let fileName = str.substring(str.indexOf("filename") + 9, str.length); fileName = "入库" + fileName.substring(6, fileName.length); fileName = decodeURIComponent(fileName); let type = res.headers..
2020-10-30 11:54:36 61
原创 图片验证码
let blob = new Blob([this.captchaPath], { type: "image/jpeg" }); this.captchaPath = "http://testofflineckysfk.ckc8.com/ckys-fk/app/visitor/getCaptcha?uuid=" + this.uuid;
2020-09-08 11:23:24 95
原创 bd.php
<?php /* explain: version : 1.0.1 使用: $db = new db; (1) : 查询操作 : 返回数组. 查询表里所有的数据: $db->table('price_table')->select(); 查看表里指定的字段: $db->table('price_table')->selec
2020-06-19 11:23:06 184
原创 reset.css
html, body, div, p, h1, h2, h3, h4, h5, h6, a, ul, li, ol, span, img, dl, dt, dd, b, input, select, textarea, i, em, var, strong, center, small, big, form, table, caption, tr, th, td, thead, tbody, del, ins, abbr { margin: 0; padding: 0; } body { font: 14p
2020-06-19 09:56:40 179
原创 Viscode 插件
Prettier : 这个是用来shift+alt+f ,美化代码; chinese: 用来汉化 background-cover : 来改变vscode的背景; 使用方法请查询其他博客,我觉得比我写的好,我就懒得写了; ...
2020-04-20 11:35:42 879
原创 It位的exe下载链接
it Java src = “下载网站"; https://sdlc-esd.oracle.com/ESD6/JSCDL/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jre-8u241-windows-x64.exe?GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/8u241-b07/1f5b5a70bf22...
2020-02-28 17:52:58 670
原创 刮刮乐,带适配的效果
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document&l...
2020-02-28 17:48:39 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人