改之前: 然后在保证不跳转到其他页面,在本页面中进行路由跳转,实现title的变更 改之后: 在当前页面就实现了title的动态改变。 下边是实现的方法: 在点击下一步的时候: 动态添加url并且携带自己改的参数,并存储一下当前页面的值。 location.href = `/insurantImpo ...
分类:
其他好文 时间:
2020-06-02 14:59:13
阅读次数:
144
一、vue-router vue-router是vue.js的官方路由管理器。可以方便构建单页应用。 二、vue-router使用 1.安装 vue add router 2.router.js * 使用vue-router插件 import VueRouter from'vue-router' V ...
分类:
其他好文 时间:
2020-06-02 12:58:28
阅读次数:
63
1、编译安装LNMP,并安装wordpress1.1安装php,php-mysql,myql,php-fpm[root@c1~]#yuminstallphpphp-mysqlngnixmariadb-serverphp-fpm-y1.2编译安装nginx1.2.1安装依赖包[root@c1nginx]#yuminstallgccpcre-developenssl-develzlib-devel-y
分类:
其他好文 时间:
2020-06-02 09:47:26
阅读次数:
90
ngx_http_index_module ############## index模块 Syntax: index file ...; # 语法 Default: index index.html; # 系统默认 Context: http, server, location # 环境(放哪) # ...
分类:
其他好文 时间:
2020-06-02 00:08:45
阅读次数:
73
GET请求 $.get("/api/v1.0/user",function(resp){ // 用户未登录 if ("4101" == resp.errno) { location.href = "/login.html"; } // 查询到了用户的信息 else if ("0"== resp.er ...
分类:
编程语言 时间:
2020-06-01 23:57:54
阅读次数:
93
算法名称 简称 概述 轮询(默认) round-robin(RR) 按照时间顺序逐一分配到后端不同的服务器 weight weight-round-robin(WRR) 加权轮询,weight值越大,分配到的访问几率越高 ip_hash ip_hash 每个请求按访问IP的hash结果分配,这样来自 ...
分类:
其他好文 时间:
2020-06-01 23:48:22
阅读次数:
80
从js-bom入门到放弃 window常用属性: document 返回该窗口内装载的HTML文档 location 返回该窗口装载的HTML文档的URL screen 返回当前浏览者屏幕对象 history 返回该浏览窗口的历史 window对象常用的方法: 警示弹窗 window. alert( ...
分类:
Web程序 时间:
2020-06-01 18:05:43
阅读次数:
111
一、背景 项目中用到了多个第三方的SDK,其中有些外部服务是需要在AndroidManifest中配置的,并且通过形如android:process=":remote"配置单独的进程。如百度定位,对应service配置如下: <service android:name="com.baidu.loca ...
分类:
移动开发 时间:
2020-05-31 21:46:07
阅读次数:
119
apiVersion: v1 kind: ConfigMap metadata: name: nginx-configmap2 data: default.conf: | server { listen 81; server_name localhost; location / { root /us ...
分类:
其他好文 时间:
2020-05-31 16:29:19
阅读次数:
55
#nignx方向代理 ##proxy_pass 字符串匹配情况 ####example 1: location /name/ { proxy_pass http://127.0.0.1/remote/; } proxy指定了uri,uri将会被代替,请求http://127.0.0.1/name/则 ...
分类:
其他好文 时间:
2020-05-31 15:56:32
阅读次数:
57