摘要: 方式一 指定IP 在nginx目录下创建blockips.conf 并添加 deny 42.200.167.4; 其中 42.200.167.4为屏蔽的ip地址 在nginx.conf中任何server{ ... }前 添加 include /etc/nginx/blockips.conf; 刷新配 阅读全文
posted @ 2025-04-09 11:47 程序员の奇妙冒险 阅读(230) 评论(0) 推荐(0)
摘要: 执行 ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module - 阅读全文
posted @ 2025-04-09 11:46 程序员の奇妙冒险 阅读(46) 评论(0) 推荐(0)
摘要: QuartzManager分组版 package net.fjyl.market.quartz; import org.quartz.*; import org.quartz.impl.StdSchedulerFactory; /** * @author caizw * @date 2018-08- 阅读全文
posted @ 2025-04-09 11:44 程序员の奇妙冒险 阅读(24) 评论(0) 推荐(0)
摘要: <template> <div class="wagerTable"> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="wagerCode" label="下注号码"> </el-table-column 阅读全文
posted @ 2025-04-09 11:21 程序员の奇妙冒险 阅读(92) 评论(0) 推荐(0)
摘要: index.vue <!-- * 上传图片拖拽排序、底部显示图片原始名称 --> <template> <div class="uploadWrapper"> <vuedraggable class="vue-draggable" :class="{ single: isSingle, maxHid 阅读全文
posted @ 2025-04-09 11:19 程序员の奇妙冒险 阅读(153) 评论(0) 推荐(0)
摘要: /** * 精确加法 */ addNumber(num1, num2) { const num1Digits = (num1.toString().split('.')[1] || '').length; const num2Digits = (num2.toString().split('.')[ 阅读全文
posted @ 2025-04-09 11:16 程序员の奇妙冒险 阅读(38) 评论(0) 推荐(0)
摘要: export function downloadByUrl(imgsrc, name) { var image = new Image() // 解决跨域 Canvas 污染问题 image.setAttribute('crossOrigin', 'anonymous') image.onload 阅读全文
posted @ 2025-04-09 11:14 程序员の奇妙冒险 阅读(133) 评论(0) 推荐(0)
摘要: 自定义batchImportGoods.vue组件 <template> <span> <el-button type="success" size="mini" @click="batchImport"> 批量导入 </el-button> <el-dialog title="批量导入" appe 阅读全文
posted @ 2025-04-09 11:12 程序员の奇妙冒险 阅读(10) 评论(0) 推荐(0)
摘要: 设置淘宝镜像 // 设置淘宝镜像,不然下载不了electron npm config set electron_mirror https://cdn.npm.taobao.org/dist/electron/ // 解决npm install 慢 npm config set registry ht 阅读全文
posted @ 2025-04-09 11:12 程序员の奇妙冒险 阅读(319) 评论(0) 推荐(0)
摘要: Unexpected end of JSON input while parsing near '...nterpret","version":"' 解决步骤 This solved it for me npm cache clean --force then run npm install -g 阅读全文
posted @ 2025-04-09 11:09 程序员の奇妙冒险 阅读(58) 评论(0) 推荐(0)
摘要: Blob 转base64 blobToBase64(blob) { return new Promise((resolve, reject) => { const fileReader = new FileReader(); fileReader.onload = (e) => { resolve( 阅读全文
posted @ 2025-04-09 11:07 程序员の奇妙冒险 阅读(36) 评论(0) 推荐(0)
摘要: // npm查看当前版本 npm -v // npm查看所有版本 npm view npm versions // npm更新到最新版 npm install -g npm // 查看当前配置 npm config list // 查看缓存路径 npm config get cache // 查看全 阅读全文
posted @ 2025-04-09 11:04 程序员の奇妙冒险 阅读(38) 评论(0) 推荐(0)
摘要: 表单方式 const params = { keyword: this.listSearchKey.keyword }; const formEl = document.createElement('form'); formEl.setAttribute('action', url); formEl 阅读全文
posted @ 2025-04-09 11:01 程序员の奇妙冒险 阅读(59) 评论(0) 推荐(0)
摘要: uniapp开发,vue文件 微信小程序方式 let funName = 'testFun'; this[funName]() H5方式 let funName = 'testFun'; eval("this."+funName+"()"); 调用的是 testFun方法 methods: { te 阅读全文
posted @ 2025-04-09 10:57 程序员の奇妙冒险 阅读(25) 评论(0) 推荐(0)
摘要: <button bindtap="tomap" class="cu-btn line-blue sm">获取地址</button> tomap: function() { var t = this; wx.authorize({ scope: "scope.userLocation", succes 阅读全文
posted @ 2025-04-09 10:55 程序员の奇妙冒险 阅读(38) 评论(0) 推荐(0)
摘要: /* Windows服务 */ -- 启动MySQL net start mysql -- 创建Windows服务 sc create mysql binPath= mysqld_bin_path(注意:等号与值之间有空格) /* 连接与断开服务器 */ mysql -h 地址 -P 端口 -u 用 阅读全文
posted @ 2025-04-09 00:15 程序员の奇妙冒险 阅读(32) 评论(0) 推荐(0)
摘要: 索引的本质 索引是帮助mysql高效获取数据的排好序的数据结构 索引存储在文件里 索引结构 二叉树(红黑树:二叉平衡树) hash BTREE B-Tree与B+Tree B+Tree是B-Tree的变种 B-Tree 度-节点的数据存储个数 叶节点具有相同的深度 叶节点的指针为空 节点中的数据ke 阅读全文
posted @ 2025-04-09 00:14 程序员の奇妙冒险 阅读(54) 评论(0) 推荐(0)
摘要: 读未提交(Read uncommitted) 读提交(read committed) 可重复读(repeatable read) 串行化(Serializable) 读未提交(RU): 一个事务还没提交时, 它做的变更就能被别的事务看到.【可以看到未提交的数据(脏读)】 读提交(RC): 一个事务提 阅读全文
posted @ 2025-04-09 00:12 程序员の奇妙冒险 阅读(28) 评论(0) 推荐(0)
摘要: mysql 配置 [mysqld] lower_case_table_names=1 # 添加此行代码重启mysql即可 阅读全文
posted @ 2025-04-09 00:09 程序员の奇妙冒险 阅读(7) 评论(0) 推荐(0)
摘要: - 查询30天 select DATE_SUB(CURDATE(), INTERVAL 30 DAY) frm table; 今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 SELECT * FROM 表名 WHERE DA 阅读全文
posted @ 2025-04-09 00:00 程序员の奇妙冒险 阅读(53) 评论(0) 推荐(0)