;(function(global,factory){ typeof exports 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define 'function' && define ...
分类:
其他好文 时间:
2020-09-24 22:08:52
阅读次数:
79
第五章 nginx+lua+redis实现广告缓存 2.1 需求分析 需要在页面上显示广告的信息。 2.2 OpenResty 2.2.1 OpenResty介绍 OpenResty(又称:ngx_openresty) 是一个基于 NGINX 的可伸缩的 Web 平台,由中国人章亦春发起,提供了很多 ...
分类:
其他好文 时间:
2020-09-24 21:59:08
阅读次数:
39
怎么样才能只执行一条sql语句,就返回某一页的数据,同时返回总条数? 窗口函数 count(*) over() https://stackoverflow.com/questions/156114/best-way-to-get-result-count-before-limit-was-appli ...
分类:
移动开发 时间:
2020-09-24 21:56:58
阅读次数:
65
npm init 初始化文件出现 package.json 相当于说明书 npm init -y 全部信息默认 npm install express 没有 -g 默认安装在当前文件 此时文件夹多了 node_modules 和 package-lock.json node_modules 文件中可 ...
分类:
其他好文 时间:
2020-09-24 21:45:36
阅读次数:
43
public function getPrivilegeList($moduleType){ $authRuleModel = M('auth_rule'); $data = $authRuleModel->where(['module_type' => $moduleType])->select( ...
分类:
其他好文 时间:
2020-09-24 21:36:51
阅读次数:
44
1. 打开idea,”file“ -> "new" -> "module" -> "spring initilizer" ····->"web" ->"spring web" 2. 搭建依赖 修改pom.xml 配置文件,加入依赖项。 <dependency> <groupId>org.spring ...
分类:
编程语言 时间:
2020-09-24 00:04:18
阅读次数:
40
背景 安装了Fedora 32,但是对发行版自带的内核不太满意,因为我想将vfio-pci驱动编译到内核里面(builtin),而不是以module的方式加载。 然后就从 https://mirrors.aliyun.com/fedora/releases/32/Everything/source/ ...
分类:
其他好文 时间:
2020-09-24 00:00:14
阅读次数:
42
1、打开cmd(Windows+R) 2、切换到jdk所在路径 注:先切换到对应的盘里,再用cd 路径切换到真正的路径里。 3、输入命令:bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre 4、执行完后什 ...
分类:
其他好文 时间:
2020-09-23 23:35:40
阅读次数:
48
vue-cli3 解决办法 在vue3.0根目录创建一个vue.config.js文件,内部代码如下: module.exports = { publicPath: process.env.NODE_ENV 'production' ? './' : './' }; vue-cli2 解决办法 ,在 ...
分类:
移动开发 时间:
2020-09-18 17:28:58
阅读次数:
96
Lua5.3 random函数的interval is empty错误 问题记录:math.random函数使用中报错 “interval is empty” 解决方法:math.random的两个参数中,第一个参数 ≤ 第二个参数。 luaL_argcheck(L, low <= up, 1, " ...
分类:
其他好文 时间:
2020-09-18 17:21:14
阅读次数:
58