摘要:
多层路由嵌套示例: https://github.com/DudeYouth/react-route-dom-test.git 一、BrowserRouter 说明:使用HTML5历史记录API(pushState,replaceState和popstate事件)的<Router>来保持UI与URL 阅读全文
摘要:
一. docker使用 1. docker ps 查看运行中的容器 2. docker images 查看docker镜像 3. docker rm id(容器id) 删除容器(容器id可以通过docker ps查看,容器必须停止后才能删除) 3.1 删除全部的容器 docker rm `docke 阅读全文
摘要:
function base64_to_blob($base64Str){ if($index = strpos($base64Str,'base64,',0)){ $blobStr = substr($base64Str,$index+7); $typestr = substr($base64Str,0,$index); preg_ma... 阅读全文
摘要:
1. 安装apache2 2.安装php ubuntu16.04: ubuntu14.04: * 14.04版本的ubuntu没有自带php7.0的安装包 * 错误来啦:sudo: add-apt-repository:command not found 网上解决办法是直接安装工具包 命令: 安装完 阅读全文
摘要:
一、git服务器搭建(服务器用户:root) 安装git 创建git用户 创建git仓库 使用git用户生成git密钥(把客户端的公钥(id_rsa.pb文件内容)添加到authorized_keys文件,git push操作就不需要每次都输入密码了) 创建web目录 1. 编写自动更新钩子 给钩子 阅读全文
摘要:
一、linux 安装 redis-server 二、启动redis-server服务 1. 修改配置 服务后台启动 2.启动服务 三、安装node的依赖包 四、使用实例 完成以上配置,session就会自动上次到redis服务器上,持久保存了!再也不用担心重启node服务器会丢失session了! 阅读全文
摘要:
1. 微信小程序不支持cookie 1. 使用Reids存储session 2. 使用3rd_session建立会话关系 2. 微信小程序post请求,服务端获取不到参数 1. 需要把Content-type改成‘application/x-www-form-urlencoded’才可以正常获取 2 阅读全文
摘要:
一. 小程序不支持cookie会话 1. 通过传递与检验3rd_session来保持会话 2. 3rd_session可以执行‘`head -n 80 /dev/urandom | tr -dc A-Za-z0-9 | head -c 168`该命令生成 3. 使用Redis或者数据库存储sessi 阅读全文
摘要:
目录结构: Model/index.js @: es6新增的装饰器语法,babel已支持需要安装 babel-plugin-transform-decorators-legacy 类的静态属性:es7新增的语法,babel已支持需要安装 babel-preset-stage-2 @observer: 阅读全文
摘要:
github url:https://github.com/aksonov/react-native-router-flux API: https://github.com/aksonov/react-native-router-flux/blob/master/docs/API_CONFIGURA 阅读全文