let animal1 = { type: "鼠", eat(food) { console.log(`${this.type}吃${food}`); }, }; let animal2 = { type: "猫", }; animal1.eat("玉米"); //鼠吃玉米 animal1.eat. ...
分类:
移动开发 时间:
2020-12-28 11:10:21
阅读次数:
0
使用 yeild 异步编程 function * abc () { var a = yield API.getGeneralData({ areacode: self.valueAreaVal, year: self.valueDate }); console.log(a); var b = yie ...
分类:
Web程序 时间:
2020-12-28 11:09:50
阅读次数:
0
nginx -s reload 有时候重新加载配置文件没有生效 检查/var/log/nginx/error.log [notice] 29410#0: signal process started [emerg] 2999#0: bind() to 0.0.0.0:9091 failed (13: ...
分类:
其他好文 时间:
2020-12-28 10:54:15
阅读次数:
0
要执行函数定义的特定任务,我们可以使用函数。需要在程序中多次执行同一项任务时,你无需反复编写完成该任务的代码,而只需调用执行该任务的函数,让Python运行其中的代码。你将发现,通过使用函数,程序的编写、阅读、测试和修复都将更容易。
分类:
编程语言 时间:
2020-12-25 12:38:55
阅读次数:
0
环境准备:系统镜像:CentOS-7-x86_64-DVD-2009.isoZabbix源码包:zabbix-5.2.2.tar.gz官方网址:https://www.zabbix.com/cn/download_sources直接使用迅雷下载:http://192.168.1.9/zabbix-5.2.2.tar.gz?fid=8SzoZHHht0OP1q5RQkkdo87-RQtNSS0BAA
分类:
数据库 时间:
2020-12-25 12:38:17
阅读次数:
0
一、安装相应版本的logstash wget https://artifacts.elastic.co/downloads/beats/logstash/logstash-7.5.2-x86_64.rpm rpm -ivh logstash-7.5.2-x86_64.rpm 二、配置rsyslog接 ...
分类:
其他好文 时间:
2020-12-25 12:34:22
阅读次数:
0
作者:骏马金龙 出处:https://www.cnblogs.com/f-ck-need-u/archive/2018/05/08/9010872.html innodb事务日志包括redo log和undo log。redo log是重做日志,提供前滚操作,undo log是回滚日志,提供回滚操作 ...
分类:
数据库 时间:
2020-12-25 12:33:55
阅读次数:
0
考虑莫队。 如果是单纯的莫队的话,还需要一个树状数组来维护逆序对数,这样子的话复杂度是 \(O(n^{1.5}\log n)\),难以接受。 怎么将这个树状数组消除? 考虑当前区间为 \([l,r-1]\) ,需要将右端点向右移动,即加入 \(a_r\) ,并且将答案加上 \(a_{l,l+1,\c ...
分类:
其他好文 时间:
2020-12-25 12:28:35
阅读次数:
0
ES6之前,定义一个函数(构造器)对象,使用this定义属性 使用new & 构造器创建一个新对象 function B(x){ console.log('B class') console.log(this); this.x=x; this.show=function(){console.log( ...
分类:
其他好文 时间:
2020-12-25 12:26:46
阅读次数:
0
背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: Kernel版本:4.14 ARM64处理器 使用工具:Source Insight 3.5, Visio 1. 概述 ...
分类:
系统相关 时间:
2020-12-25 12:25:50
阅读次数:
0