在index.html 文件的header标签内加入: <script type="text/javascript"> function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE ...
分类:
其他好文 时间:
2020-08-26 18:50:56
阅读次数:
57
Linux pip安装速度慢(超时报错),为pip换源 mkdir -p ~/.pip/ vim pip.conf pip.conf中内容如下: [global] index-url=http://mirrors.aliyun.com/pypi/simple/ [install] trusted-h ...
分类:
系统相关 时间:
2020-08-25 18:29:01
阅读次数:
88
动态规划 讲解动态规划的资料很多,官方的定义是指把多阶段过程转化为一系列单阶段问题,利用各阶段之间的关系,逐个求解。概念中的各阶段之间的关系,其实指的就是状态转移方程。 我们一般看到的状态转移方程,基本长成下面这样(注:i、j、k 都是在定义DP方程中用到的参数。opt 指代特殊的计算逻辑,大多数情 ...
分类:
编程语言 时间:
2020-08-25 16:04:26
阅读次数:
48
思路:滑动页面的时候监听手势,判断是左滑还是右滑,组件里面接收 list 和 index 然后左滑 index+1 右滑动 index-1,注意判断数组边界 1.在项目根目录下创建 component文件夹 新建vue文件 swiperAction.vue 如下 接收一个 list 和一个 inde ...
分类:
移动开发 时间:
2020-08-25 16:02:29
阅读次数:
166
安装 pip install tornado==4.3 hello world #coding=utf-8 import tornado.web import tornado.ioloop #单线程 #创建一个处理类 class IndexHandler(tornado.web.RequestHan ...
分类:
其他好文 时间:
2020-08-20 19:14:09
阅读次数:
65
在V2的基础上继续优化 procedure DbGridSortByCol(Column: TUniDBGridColumn; Direction: Boolean); var SortStr:string;beginif Direction thenSortStr := Column.FieldN ...
分类:
数据库 时间:
2020-08-19 19:34:00
阅读次数:
71
14、Spring整合Mybatis 官方参考文档:http://mybatis.org/spring/zh/index.html 问题: (1)为什么要整合Mybatis? 1、使用SqlSessionTemplate 步骤: 14.1.1、导入依赖 所需依赖: Junit:测试所需依赖包 Lom ...
分类:
编程语言 时间:
2020-08-19 19:17:07
阅读次数:
54
template是一个模板引擎 使用: 1.简单使用 // 导入模板引擎模块 const template = require('art-template'); // 将特定模板与特定数据进行拼接 1 const html = template('./views/index.art',{ 2 dat ...
分类:
其他好文 时间:
2020-08-18 14:01:01
阅读次数:
70
char* replaceSpace(char* s){ char str[10000] ={0}; int index = 0; while(*s) { if (*s == 0x20) { str[index++] = 0x25; str[index++] = 0x32; str[index++] ...
分类:
其他好文 时间:
2020-08-18 13:32:05
阅读次数:
49
数组与ArrayList类的区别: 数组的长度不可以发生改变。但是ArrayList集合的长度是可以随意变化的。 对于ArrayList来说,有一个尖括号代表泛型。 泛型:也就是装在集合当中的所有元素,全都是统一的什么类型 注意:泛型只能是引用类型,不能是基本类型。 注意事项: 对于ArrayLis ...
分类:
编程语言 时间:
2020-08-17 17:18:27
阅读次数:
65