- 博客(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
147
原创 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
146
原创 node-mondb操作
1 下载链接:https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.5-signed.msi/download2 查询下载是否成功:打开 Dos窗口:mongo输入;+ enter 如果安装成功会返回一个版本号:然后 上述为安装程序挺简单的:安装好后程序如下:\首先在...
2021-01-20 16:13:36
180
原创 arrshuzhu
/**auth: weilangithub: https://github.com/hql7description: 一个数组操作函数库*/// 从树形数据中递归筛选目标值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
198
原创 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
979
原创 在vue中的一些使用处理:
mounted() {const timer = setInterval(() => { … }, 1000);this.$once(‘hook:beforeDestroy’, () => clearInterval(timer)????}如果渲染完该页面然后进入的一个页面开启了一个定时器,最好选用上述情况mounted() {this.timer = setInterval(() => { … }, 1000);},beforeDestroy() { //这个是退出本页的
2020-11-11 11:30:16
131
翻译 导出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
142
原创 图片验证码
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
132
原创 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
247
原创 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
214
原创 Viscode 插件
Prettier : 这个是用来shift+alt+f ,美化代码;chinese: 用来汉化background-cover : 来改变vscode的背景;使用方法请查询其他博客,我觉得比我写的好,我就懒得写了;...
2020-04-20 11:35:42
972
原创 It位的exe下载链接
it Javasrc = “下载网站";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
843
原创 刮刮乐,带适配的效果
<!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
232
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅