Sql命令
MySQL设置自增
alter table 表名 AUTO_INCREMENT=1
Sql Server设置自增
DBCC CHECKIDENT (表名,reseed,0)
cmd命令
杀死端口号
netstat -ano |findstr 端口号
taskkill -pid 端口号 -f
idea
行尾注释
Inspections
在IntelliJ Idea中HTML格式化时,默认以及下的以及标签都不会缩进。
解决方法:editor->code style->HTML->other->Do not indent children of
删掉<html><head><body>这几项就可以了。
React
node.js官网下载
https://nodejs.org/en/download/
node --version
npm -v
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm -v
设置cnpm
npm config set registry https://registry.npm.taobao.org
npm config get registry
创建React应用
全局安装
npm i -g create-react-app
切换到想创建项目的目录
create-react-app 项目名
进入项目文件夹
cd 项目名
启动项目
npm start