Child.prototype = Parent.prototype和Child.prototype = new Parent()的区别 ## 1、Child.prototype = new Parent()取不到Child原型上的属性,constructor指向Parent //父类 functi ...
分类:
其他好文 时间:
2020-12-16 11:46:13
阅读次数:
3
1. 配置说明 1.配置rabbitmq.properties rmq.ip=192.168.5.109 rmq.port=5672 rmq.producer.num=20 rmq.manager.user=test rmq.manager.password=123456 2.使用注解配置Rabbi ...
分类:
其他好文 时间:
2020-12-15 12:54:42
阅读次数:
8
1. 下载 官网下载:https://dev.mysql.com/downloads/mysql/ 嫌官网网速慢可以加q群,在群文件里下载: 1.下载第一个download 2.解压在自己建的目录(各级目录文件名不能有中文和特殊字符) 2. 初始化MySQL+安装MySQL服务+修改密码 1.以管理 ...
分类:
数据库 时间:
2020-12-15 12:47:16
阅读次数:
8
1.前言 目前我主要负责的是公司的营销活动类项目,基本都是直接面向用户端的,并且JS也没有如后端一样有完善的日志系统,因此线上的各种bug都非常难以迅速定位。在加入错误日志收集前,每次报告bug都要劳烦用户协助开发人员进行bug定位,这一方面对用户极不友好,同时也加大了Bug定位的难度;因此我们需要 ...
分类:
其他好文 时间:
2020-12-15 12:16:35
阅读次数:
3
将type=-1的对象提到第一位: let orglist = [//原数组 {name:a,type:0}, {name:b,type:1}, {name:c,type:-1}, ] orglist.forEach((item,idx)=>{ if(item.type == -1){ orglis ...
分类:
编程语言 时间:
2020-12-15 12:06:43
阅读次数:
4
根据PDA不同,打开广播模式有不同区别。 main = plus.android.runtimeMainActivity(); var IntentFilter = plus.android.importClass('android.content.IntentFilter'); filter = ...
分类:
移动开发 时间:
2020-12-15 11:46:23
阅读次数:
6
解决JavaScript中构造函数浪费内存的问题! 把构造函数中的公共的方法放到构造函数的原型对象上! // 构造函数的问题! function Gouzaohanshu(name, age, gender) { this.name = name; this.age = age; this.gend ...
分类:
编程语言 时间:
2020-12-15 11:41:00
阅读次数:
5
STP实验实验拓扑图1-1注:如无特别说明,描述中的R1或SW1对应拓扑中设备名称末尾数字为1的设备,R2或SW2对应拓扑中设备名称末尾数字为2的设备,以此类推实验需求开启所有设备,等待STP收敛后观察STP状态使SW4成为根网桥使闭塞端口出现在SW2上把SW1上连接的PC的端口配置为边缘端口实验解法1、等待STP收敛后,查STP运行状态,找出根网桥,闭塞端口步骤1:根据HCL模拟器的运行机制,S
分类:
其他好文 时间:
2020-12-11 12:00:51
阅读次数:
2
首先基本上会把arr=[1,2,3] ->转为1->2->3 这样的结构 class Node { constructor(item) { this.item = item this.next = null } } class linkedList { constructor() { this.he ...
分类:
其他好文 时间:
2020-12-11 11:58:11
阅读次数:
2
关于 js 中 js 指向的问题 本文章通过代码的运行来描述 this 的具体指向: 默认绑定 场景一: console.log('普通情况', this) // window 在普通状态下, this 指向的是全局变量 window 场景二: function foo() { console.lo ...
分类:
Web程序 时间:
2020-12-11 11:46:59
阅读次数:
12