var labels = {}; earthquakes.on('createfeature', function (e) { var id = e.feature.id; var feature = earthquakes.getFeature(id); var center = feature. ...
分类:
其他好文 时间:
2020-07-13 09:15:34
阅读次数:
49
一、环境搭建 靶机下载地址 http://vulnstack.qiyuanxuetang.net/vuln/detail/5/ 本次环境为黑盒测试,不提供虚拟机账号密码,centos 出网机 ip 为 192.168.1.110,目标是域控内的一份重要文件。 所有主机解压后都是挂起状态,配好网络环境 ...
分类:
其他好文 时间:
2020-07-12 22:34:11
阅读次数:
271
function foo() { console.log(this); console.log(this.a); } function doFoo(fn) { fn(); } var obj = { a: 2, foo: foo } var a = 'oops,global'; doFoo(obj. ...
分类:
其他好文 时间:
2020-07-12 20:38:27
阅读次数:
58
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fun... ...
分类:
其他好文 时间:
2020-07-12 18:50:22
阅读次数:
74
先说结论。使用连接池的情况下,每一条Redis命令都将从连接池中获得一个连接,执行完后随即回收。因此在做切库操作时,使用Pipline来必须保证前后几条命令在同一个库执行。 ###一,现象 某个微服务中,我们的Redis key 集中在11库,因此连接池的默认库为11。由于历史原因,当需要获取设备信 ...
分类:
数据库 时间:
2020-07-12 18:44:04
阅读次数:
126
function f(){ return this.a; } var g = f.bind({a:"azerty"}); console.log(g()); // azerty var o = {a:37, f:f, g:g}; console.log(o.f(), o.g()); // 37, a ...
分类:
其他好文 时间:
2020-07-12 18:32:37
阅读次数:
53
和提交普通表单一样发送数据 浏览器端代码 $("#ajaxform").click(function () { //在我们像提交表单一样发送数据时,不用把JSON对象转换为JSON字符串 var requestBody = { "empId":999, "empName":"harry", "emp ...
分类:
Web程序 时间:
2020-07-12 17:03:23
阅读次数:
67
express获取client_ip req.ip // 获取客户端ip req.ips // 获取请求经过的客户端与代理服务器的Ip列表 查看源码 定义获取ip的入口, // 源码 request.js defineGetter(req, 'ip', function ip(){ var trus ...
分类:
其他好文 时间:
2020-07-12 14:51:53
阅读次数:
89
记录当前用户的UID。root用户值为0。 [root@localhost script]# echo $UID 0 用于保存用户主目录的完全路径名 [root@localhost script]# echo $HOME/root Bash Shell的全路径 [root@localhost scr ...
分类:
系统相关 时间:
2020-07-12 14:23:58
阅读次数:
82
Go提供了一套完整的Web服务器标准库,使得go构建服务器非常简单,创建服务器只需要调用ListenAndServe即可。相应的Web函数库在net/http包中,本文参考《Go Web编程》中的内容,介绍服务器的构造,有兴趣的小伙伴可以亲自去翻阅这本书。 首先构建两种最简单的服务器: packag ...
分类:
Web程序 时间:
2020-07-12 10:33:49
阅读次数:
100