摘要:
slmgr.vbs /upk slmgr /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 slmgr /skms zh.us.to slmgr /ato 阅读全文
摘要:
Promise是异步编程的一种解决方案,它有三种状态,分别是 状态一旦改变,就无法再次改变状态,这也是它名字promise-承诺的由来 声明一个promise对象 Promise.prototype.then() Promise.prototype.catch() 阅读全文
摘要:
1 . 校验密码强度 密码的强度必须是包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间。 ^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$2. 校验中文 字符串仅能是中文。 ^[\\u4e00-\\u9fa5]{0,}$3. 由数字、26个英文字母或下 阅读全文
摘要:
安装各种loader { test: /\.css$/, loader: 'style-loader!css-loader?modules!postcss' }, //安装postcss-loader 和 autoprefixer(自动添加前缀的插件):npm install --save-dev 阅读全文
摘要:
/src目录下新增一个pages目录,用于存放渲染页面的组件 在/src/pages中新增一个Add.js文件 /src 下的index.js 路由:import React from 'react'; import ReactDOM from 'react-dom'; import { Brows 阅读全文
摘要:
全家桶内装有: react - github react-router - github redux - github react-redux - github react-router-redux - github redux-saga - github immutable - github re 阅读全文
摘要:
安装 req.app:当callback为外部文件时,用req.app访问express的实例 req.baseUrl:获取路由当前安装的URL路径 req.body / req.cookies:获得「请求主体」/ Cookies req.fresh / req.stale:判断请求是否还「新鲜」 阅读全文