上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: /** * 获取某月最后一天 * @param year * @param month * @returns {number} */ getLastDay(year, month) { var new_year = year; //取当前的年份 var new_month = month++;//取 阅读全文
posted @ 2021-05-20 10:51 py卡卡 阅读(153) 评论(0) 推荐(0)
摘要: el-select 默认值显示value不显示label问题在做编辑页面时需要取到列表项数据回显默认值在做select回显的时候遇到了这个问题 明明拿到的值和value中的值一样但是就是不转换成label这种情况一般出现在value为数字的情况 原因是 返回的数字和el-option选框里value 阅读全文
posted @ 2021-05-09 19:27 py卡卡 阅读(5473) 评论(0) 推荐(0)
摘要: <el-form-item label="主厨描述"> <el-input v-model="chef_desc" :autosize="{ minRows: 2, maxRows: 4}" type="textarea" maxlength="128" @input="descInput" pla 阅读全文
posted @ 2021-04-29 10:29 py卡卡 阅读(2653) 评论(0) 推荐(0)
摘要: 第一步 安装redis去官网下载最新的redis版本 安装官网上的步骤来就行了 非常简单 进入自己选择的安装路径 cd /data/package $ wget https://download.redis.io/releases/redis-6.2.1.tar.gz $ tar xzf redis 阅读全文
posted @ 2021-03-22 13:48 py卡卡 阅读(50) 评论(0) 推荐(0)
摘要: 表结构 子节点拼接父节点希望得到结果: sql 语句: SELECT b1.id AS 'ID', IF( b1.detail_index = '', CONCAT(b2.detail_index, '_', '子类'), IF( b1.parent_id = 0, b1.detail_index, 阅读全文
posted @ 2021-03-19 09:10 py卡卡 阅读(218) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/2/7 16:23 # @Author : from bs4 import BeautifulSoup import re import xlwt import urllib.r 阅读全文
posted @ 2021-03-01 15:19 py卡卡 阅读(325) 评论(0) 推荐(0)
摘要: urlopen 函数不会自动处理服务器返回的 gzip 数据,出现类似 \x1f\x8b\x08\x00 的乱码。 Request header 中的 Accept-Encoding 属性如果为 gzip,服务器返回的是 gzip 压缩后的数据,如下所示: import urllib.request 阅读全文
posted @ 2021-03-01 15:08 py卡卡 阅读(732) 评论(0) 推荐(0)
摘要: <div> <img alt="" onclick="showImg(this)" src="https://realcan-prescription-test.oss-cn-qingdao.aliyuncs.com/20201209/1607494454.jpg"> <img alt="" onc 阅读全文
posted @ 2020-12-09 16:01 py卡卡 阅读(621) 评论(0) 推荐(0)
摘要: 1. 最小化安装 2. 配置基本信息 hostnamectl set-hostname aaa_name 为了每次系统重新启动时,都可以获取更大的ulimit值,将ulimit 加入到/etc/profile 文件底部。 echo ulimit -n 65535 >>/etc/profile sou 阅读全文
posted @ 2020-11-26 14:41 py卡卡 阅读(849) 评论(0) 推荐(0)
摘要: 添加nginx yum源 Nginx官网提供了三个类型的版本Mainline version:Mainline 是 Nginx 目前主力在做的版本,可以说是开发版Stable version:最新稳定版,生产环境上建议使用的版本Legacy versions:遗留的老版本的稳定版 sudo vim 阅读全文
posted @ 2020-11-26 14:14 py卡卡 阅读(1627) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页