Mysql
# MySQL报错:sql_mode=only_full_group_by
# 解决方法
# 方式1: SET SESSION sql_mode = sys.list_drop(@@session.sql_mode, 'ONLY_FULL_GROUP_BY');
# 方式2: mysql 存储数据的目录/my.ini 如下
# sql-mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
# union
# 两侧必须按照一样的顺序
Java
var formData = new FormData();
for (let index = 0; index < file.length; index++) {
formData.append("files", file[index]);
}
JS
uniapp
var str = '1999-09-09 12:00:00';
new Date(str.replace(/-/g,'/'));
Android
android:exported="true"
Windows
@echo off
F:
cd F:\wsd
start cmd /k "cd vue2&&npm start"
start cmd /k "cd vue2a&&npm start"
@echo off
net stop "MySQL571"
net start "MySQL571"
:begin