【建表原则】 定长与边长相分离 常用与不常用相分离 适当反范式 【列类型选择】 int > date,time > enum,char > varchar > blob,text 字符串相对于整形要考虑字符集和校对集 尽量不用NULL 【btree索引 hash索引】 有必要使用联合索引(多列索引、 ...
分类:
数据库 时间:
2021-04-12 12:15:31
阅读次数:
0
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ...
分类:
Web程序 时间:
2021-04-12 11:51:40
阅读次数:
0
先查看当前系统时间 root@ubuntu:/# date -R 结果时区是:-0500我需要的是东八区,这儿显示不是,所以需要设置一个时区 1.运行tzselect root@ubuntu:/# tzselect 在这里我们选择亚洲 Asia,确认之后选择中国(China),最后选择北京(Beij ...
分类:
系统相关 时间:
2021-04-10 13:40:28
阅读次数:
0
最近刚好有朋友在问Node.js多线程的问题,我总结了一下,可以考虑使用源码包里面的worker_threads或者第三方的模块来实现。 首先明确一下多线程在Node.js中的概念,然后在聊聊worker_threads的用法。天生异步,真心强大。 Node.js多线程概述 有人可能会说,Node. ...
分类:
编程语言 时间:
2021-04-10 13:39:47
阅读次数:
0
PAT (Advanced Level) Practice 1061 Dating (20 分) 凌宸1642 题目描述: Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2 ...
分类:
其他好文 时间:
2021-04-10 13:28:08
阅读次数:
0
You are the manager of a basketball team. For the upcoming tournament, you want to choose the team with the highest overall score. The score of the te ...
分类:
其他好文 时间:
2021-04-10 13:19:16
阅读次数:
0
凌晨0点 fields['startTime']=new Date(new Date(fields.searchTime2[0]).toLocaleDateString()).getTime() 当天23点59分59秒 fields['endTime']=new Date(new Date(fiel ...
分类:
Web程序 时间:
2021-04-10 13:03:41
阅读次数:
0
1.安装 npm install animate.css@3.7.2 --save 2.引入 main.js中: import animated from 'animate.css' Vue.use(animated) 3.使用 vue文件中: <!-- 直接使用animated中的动画class名 ...
分类:
其他好文 时间:
2021-04-10 12:54:36
阅读次数:
0
1、上传项目文件夹至服务器,设置文件夹权限: 2、进入upload文件夹,打开“终端” 登录终端后,初始化依赖: npm i 3、修改nuxt.config.js配置:终端输入 sudo vi ./nuxt.config.js 修改target为static,:wq保存退出 4、生成静态:终端输入 ...
分类:
其他好文 时间:
2021-04-10 12:51:27
阅读次数:
0
var arr =["George","John","Thomas","James","Adrew","Martin"] let mm = arr.splice(2,3) console.log(arr) // 结果 ["George","John","Martin"] 如果arr不赋给某个值,直接 ...
分类:
Web程序 时间:
2021-04-09 13:41:43
阅读次数:
0