- 博客(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
10849
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
10400

原创 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
6329

原创 最新详细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
5445
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
5659

转载 无法定位程序输入点 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
25970

原创 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
38004
9

转载 Vue JsonView 树形格式化代码插件
组件代码<template> <div class="bgView"> <div :class="['json-view', length ? 'closeable' : '']&am
2018-12-11 09:51:09
4388
原创 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://git@github.com/adobe-webplatform/eve.git
2022-12-13 21:54:42
3236
原创 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
532
原创 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
461
原创 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
868
原创 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
311
原创 动态渲染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
1310
原创 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
3620
原创 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
236
原创 css h5移动端背景铺满
使用定位强制定义盒模型的区域.page{ background-color: #F1F5F6; width: 100%; position: absolute; top: 0px; bottom: 0px;}
2021-08-03 10:31:40
313
原创 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
1337
转载 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
2537
原创 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
659
原创 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
300
原创 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
221
原创 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
331
原创 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
204
原创 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
1420
原创 鼠标点击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
1252
原创 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
218
原创 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
269
原创 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
339
原创 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
714
原创 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
841
原创 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
1361
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人