自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

你是人间四月天

你是人间四月天

  • 博客(103)
  • 收藏
  • 关注

原创 element admin登录后跳转失败

在src\store\modules\user.js中需要把getinfo注释掉 getInfo({ commit, state }) { return new Promise((resolve, reject) => { //此方法是login登陆成功后执行用写死的数据代替返回值,注意框架结构! // getInfo(state.token).then(...

2019-09-23 16:25:52 10359 9

原创 configure: WARNING: unrecognized options: --with-mcrypt, --enable-gd-native-ttf

php7.2不支持 --with-mcrypt, --enable-gd-native-ttf,把这两个选项删除掉。

2019-05-24 14:43:48 10307

原创 js报错Uncaught ReferenceError: $ is not defined

使用tp框架的模板继承时子模板中(user.html)的main区块中使用到了jq操作,报错Uncaught ReferenceError: $ is not defined子模板中要继承来之父模板中的jq库,必须放在父模板中(base.html)的main区块之前...

2019-04-27 10:26:13 6262

原创 最新详细mysql安装和连接navicat

1,去下载,这里使用的是当前最新版本的zip(mysql-8.0.15,64-bit)2,解压到 D 盘:3,配置环境变量:之后将 %MYSQL_HOME%\bin; 添加到path中(注意自己的路径!!!!!!!)4,再在mysql-8.0.15-winx64文件下,用记事本新建文件 my.ini ,写入内容:[mysqld]# 设置3306端口port=3306# 设置my...

2019-03-07 15:12:07 5358 4

转载 mongodb查询非空数组的几种方法

一、elemMatch和nedb.Collection.find({array:{KaTeX parse error: Expected '}', got 'EOF' at end of input: elemMatch:{ne:null}}})二、$wheredb.Collection.find({$where:“this.array.length>0”})三、not和sized...

2019-01-15 15:00:44 5593

转载 无法定位程序输入点 ucrtbase.abort于动态链接库api-ms-win-crt-runtime-|1-1-0.dll

在安装MongoDB时启动是弹出报错:无法定位程序输入点 ucrtbase.abort于动态链接库api-ms-win-crt-runtime-|1-1-0.dll我的电脑(64位)C:\Windows\System32里面不存在api-ms-win-crt-runtime-l1-1-0.dll,但是C:\Windows\SysWOW64里面有。首先把C:\Windows\SysWOW64的...

2018-12-25 10:16:24 25198

原创 vue端口号被占用报错npm ERR! @1.0.0 dev: `node build/dev-server.js`

npm run dev出现报错:npm ERR! @1.0.0 dev: node build/dev-server.js结果是端口号被占用。在config文件夹中的index.js修改端口号还需要删除掉node_modules再cnpm install重新装一遍,不然还是报错最后npm run dev...

2018-12-24 10:55:29 37743 9

转载 Vue JsonView 树形格式化代码插件

组件代码<template> <div class="bgView"> <div :class="['json-view', length ? 'closeable' : '']&am

2018-12-11 09:51:09 4349

原创 npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://gi

npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm ERR! code 128 npm ERR! npm ERR! An unknown git error occurred npm ERR! npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/adobe-webplatform/eve.git

2022-12-13 21:54:42 2703 1

原创 Mpvue [ app.json 文件内容错误] dist/wx/app.json: dist/wx/app.json 未找到

Mpvue [ app.json 文件内容错误] dist/wx/app.json: dist/wx/app.json 未找到npm install 把包安装到当前目录下的node_modelus中npm run dev 执行build/dev-server.js文件启动服务

2022-06-17 16:58:38 457

转载 uniapp小程序父组件与子组件之间调用方法

详情注意:父组件调用子组件方法,如果子组件是在v-if中的则会报错,改用v-show

2022-04-09 17:35:59 1758

原创 laravel composer报错 Please provide a valid cache path.

执行命令composer update报错:先把抛出报错的代码跳过:然后在页面运行时发现在D盘下少了storage,framework,sessions文件夹,重新创建然后重新运行就好了。file_put_contents(D:\storage\framework/sessions/sT26yYBdbbIEprKmGkyc7CikgTkdSDGiUixJ25rG): failed to open stream: No such file or directory...

2022-01-21 10:27:18 402

原创 mysql查询关联表后批量插入

INSERT INTO zds_luckdraw_times (user_id, lottery_id,total_in) VALUES (SELECT id,'27','1'FROM zds_user WHERE id < 11000);

2021-11-22 10:48:03 777

原创 中国家庭称谓计算器https://www.ip138.com/chengwei/

中国家庭称谓计算器

2021-10-15 14:57:20 718

原创 win10你需要提供管理员权限才能删除此文件夹

重启电脑然后以最快的手速在管理员程序还没启动前就找到文件删除

2021-10-14 17:20:17 468

原创 vscoe快捷代码片段带$符号

"js printing": { "scope": "javascript,typescript", "prefix": "log", "body": [ "console.log('$1');", "$2" ], "description": "Log output to console" }, "Print to console": { "prefix": "v", "body": [ "var_dump($1);die;", ], .

2021-10-12 14:48:08 211

原创 动态渲染input使用onkeyup控制值无效

动态拼接渲染input时使用onkeyup控制值只输入数字无效οnkeyup=“value=value.replace(/(0+)|[\d]+/g,’’)”改为返回函数html = '<td><input type="number" name="limit_num[]" class="limit_num" value="" class="rate-cl" min="0" οnkeyup="return changeVal(this)"></td>';

2021-08-27 19:02:17 1173

原创 uni-app添加proxy代理解决跨域

在manifest.json文件中添加proxy代理 "devServer": { "proxy": { "/api": { "target":"http://www.zhangsan.com", "changeOrigin": true,//是否跨域 "secure": false,// 设置支持https协议的代理

2021-08-27 17:16:39 3440

原创 input只能为正整数

<input type="number" min="0" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')" name="score_num[]" class="rate-cl">

2021-08-25 10:56:25 170

原创 css h5移动端背景铺满

使用定位强制定义盒模型的区域.page{ background-color: #F1F5F6; width: 100%; position: absolute; top: 0px; bottom: 0px;}

2021-08-03 10:31:40 262

原创 phpstudy 404 Not Found nginx/1.15.11

设置伪静态404 Not Found nginx/1.15.11nginxlocation / { try_files $uri $uri/ /index.php?$query_string; }Not FoundThe requested URL /admin/login was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an Er

2021-07-23 16:44:17 789

转载 PHP Fatal error: Uncaught Error: Class ‘Illuminate\Foundation\Application‘ n

PHP Fatal error: Uncaught Error: Class ‘Illuminate\Foundation\Application’ n

2021-07-20 10:33:09 2318

转载 laravel 500 Server Error

laravel 500 Server Error

2021-07-20 10:31:42 382

原创 Fatal error: Maximum execution time of 120 seconds exceeded in

ini_set(‘memory_limit’, ‘250M’);set_time_limit(0);

2021-04-25 19:19:03 574

转载 计算机网络基础知识总结

计算机网络基础知识总结

2021-03-24 20:00:47 191

原创 php循环生成中奖数据

$db = Flight::db();$prizes = $db->select('tb_luckdraw_prize', ['prize_id', 'all_num'], [ 'luckdraw_id' => 1, 'ORDER' => [ 'all_num' => 'DESC' ]]);if(empty($prizes)){ return false;}$prize_num = array_sum(array_column($prizes, 'all_num

2021-03-23 09:32:46 152

原创 php将数组按姓氏分类后排序

$user = Flight::db()->select('tb_user', ['user_id', 'name']);$new_arr = [];$i = 0;foreach($user as $key => &$val){ $i++; $name = mb_substr($val['name'], 0, 1); if(isset($new_arr[$name])){ $num_u = $new_arr[$name]['num_u']; $num_u ++; .

2021-03-19 19:29:57 187

原创 php按数组中的时间字段分组

$data = $db->select('am_table_main', '*',['ORDER'=>['added_time'=>'DESC']]);$new_data = [];foreach($data as $key => &$val){ $val['month'] = mb_substr($val['added_time'], 0 ,7); $new_data[$val['month']][] = $val;}unset($val);

2021-03-15 15:58:50 275

原创 wamp局域网内从机访问主机

1,关闭主机防火墙2,从机ping主机尝试能否成功3,勾选wamp环境设置VirtualHost和menu item :Online/offline4,切换到在线状态5,打开wamp的“安装目录”,打开httpd-vhosts.conf文件,把Require local替换为Require all granted,然后重启wamp再试。...

2021-03-11 17:59:15 164

原创 layui 左侧表格与右侧边浮动栏高度对齐

.layui-table-cell, .layui-table-col-special { height: auto; }在done中调用done: function(data) { autoFixed($(this.elem[0]).next()) } /** * 根据表格宽度自动显示右侧浮动栏,并修正浮动栏高度 * @param tableElem 绑定元素的dom */ function autoFixed(tableElem) {..

2021-02-25 19:08:14 1305

原创 鼠标点击GIF特效

(function(window,document,undefined){var hearts=[];window.requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFr

2021-02-24 11:07:19 1068

原创 layui带搜索的下拉框

使用xm-select扩展组件,

2021-02-20 16:57:32 3063 2

原创 php图片,pdf压缩包下载

php框架使用的是Flight<?php/* * 新签合同文件删除 */AdminManager::checkLogin();//判断是否登录$id = isset($_REQUEST['id']) ? trim($_REQUEST['id']) : '';$index = isset($_REQUEST['index']) ? trim($_REQUEST['index']) : '';$table_name = isset($_REQUEST['table_name']) ?

2021-02-02 18:47:09 189

原创 vue编辑input layui日期下拉框重置

layui.use(['upload', 'form', 'layer', 'laydate'], function() { var form = layui.form; var layer = layui.layer; var upload = layui.upload; var laydate = layui.laydate; laydate.render({ elem: '#begintime', //指定元素 type: 'date', done: funct.

2021-01-22 18:02:40 239

原创 Uncaught TypeError: timeline is not a function at HTMLAnchorElement.onclick

<a href='javascript:void(0)' onclick="timeline()" class='btn btn-timeline'> 查看明细</a> function timeline(){ location.href='client/balance-list?user_id='+user_id+'&user_token='+user_token;}把方法名改为其他名称timeaxis()。...

2021-01-22 14:43:21 290

转载 免费天气接口

记录备用

2020-12-23 11:32:24 2835

原创 php数组给相同键值分组后求和

原数组$all_bill_deduct:array (size=4) 0 => array (size=2) 'bill_no' => string 'plockbill_202007013' (length=19) 'deduct_amount' => string '1.00' (length=4) 1 => array (size=2) 'bill_no' => string 'plockbill_2020

2020-12-17 19:13:24 642

原创 css中使用hover来控制其他元素的样式

a:hover隐藏盒子submenu.admin-nav-mini .layui-side .layui-side-scroll .layui-nav-tree>.layui-nav-item>a:hover ~ .submenu{ display: none!important; }

2020-12-15 18:31:00 801

原创 图片压缩

https://tinypng.com/

2020-11-19 17:31:47 96

原创 vue渲染layui table使用input复选框不显示

<form action="" class="layui-form layer-form" autocomplete="off" style="margin:10px 40px 0 0"> <div class="layui-form-item layui-row"> <label class="layui-form-label"></label> <div class="layui-input-inline" style=.

2020-11-09 11:53:04 1281 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除