传统多页面应用: html中的css,js文件一般通过加版本号来更新,但html页面修改后部分机型也会有缓存,导致修改不生效。 解决办法: 在nginx配置,访问html文件时,强制不缓存: 设置所有的html文件强制不缓存: location ~ .*.(htm|html)?$ { add_hea ...
分类:
移动开发 时间:
2021-06-09 15:24:30
阅读次数:
0
before_request、after_requestfrom flask import Flask,render_template,redirect app = Flask(__name__) """ before_reuqest = [xxxxxxxxxx1,xxxxxxxxxx2] """ ...
分类:
其他好文 时间:
2021-06-08 23:12:09
阅读次数:
0
###1.抽屉drawer出现蓝框bug 针对el-tabs出现蓝框的解决办法: /deep/.el-tabs__item:focus.is-active.is-focus { box-shadow: none; } 2. 针对自带的title出现蓝色框框的解决办法: /deep/ :focus { ...
分类:
其他好文 时间:
2021-06-08 22:24:47
阅读次数:
0
1、参考文档:https://nodejs.org/dist/latest-v14.x/docs/api/path.html 2、path.basename:获取一个路径中的文件名(默认包含扩展名) path.basename('/foo/bar/baz/asdf/quux.html'); // R ...
分类:
Web程序 时间:
2021-06-06 19:35:28
阅读次数:
0
#vscode插件 #vscode代码片段 { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. ...
分类:
其他好文 时间:
2021-06-06 19:18:17
阅读次数:
0
.cls-1 { fill: #cccccc; } .cls-1:hover { fill: orange !important; } <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.7 11.15"> <defs> </defs> < ...
分类:
其他好文 时间:
2021-06-06 18:55:04
阅读次数:
0
0.注意 任何一条sql语句都是以 ”;“分号结尾 sql语句不区分大小写 1.插入数据 insert into 表名 (列名1, 列名2, 列名3, ······) values (值1, 值2, 值3, ······); insert into 表名 values (值1, 值2, 值3, ·· ...
分类:
数据库 时间:
2021-06-05 18:37:04
阅读次数:
0
KeyNotFoundException("Item was not found!"); NotImplementedException("Empty list."); ArgumentOutOfRangeException("index"); ArgumentNullException("elem ...
分类:
其他好文 时间:
2021-06-05 17:39:48
阅读次数:
0
1,查询实时值,从live表中查询,tag名为Item_0 select * from live WHERE TagName = 'Item_0' 返回结果 2,查询历史值,从history表中查询,tag名为Item_0 select * from history WHERE TagName = ...
分类:
数据库 时间:
2021-06-04 19:44:02
阅读次数:
0
一、请求体和字段 1、基础用法 请求体的数据校验是使用Pydantic来进行声明,然后校验的。 from typing import Optional from fastapi import FastAPI from pydantic import BaseModel class Item(Base ...
分类:
其他好文 时间:
2021-06-04 19:40:45
阅读次数:
0