<body> <div id="myImg" style="position: absolute; width: 100px;height: 100px;background-color: pink;border: red solid 2px; border-radius: 20px;"> <!-- ...
分类:
移动开发 时间:
2020-05-11 13:27:39
阅读次数:
71
消费者api,自动提交offset public class MyConsumer { public static void main(String[] args) { Properties props = new Properties(); //连接的集群 props.put(ConsumerCo ...
Array.of方法 由于Array构造函数创建数组时的怪异行为,比方说如下: let items = new Array(2) console.log(items.length)//2 items = new Array("2") console.log(items.length)//1 Arra ...
分类:
编程语言 时间:
2020-05-10 15:07:33
阅读次数:
56
// 全局JS // wow = new WOW( // { // animateClass: 'animated', // offset: 100, // callback: function (box) { // console.log("WOW: animating <" + box.tagN ...
分类:
其他好文 时间:
2020-05-10 09:13:46
阅读次数:
73
::@echo offset TDate=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%set TTime=%time:~0,2%%time:~3,2%%time:~6,2%if "%TTime:~0,1%"==" " set TTime=0%time:~1,1%%time:~3 ...
分类:
数据库 时间:
2020-05-08 13:33:01
阅读次数:
83
一、RocketMQ组成 1、NameServer 协调者,类似zookeeper,基于内存完成2、Broker 实例3、Topic 4、tag topic里的标签5、Message Queue topic里的队列6、offset 标记消息在Message Queue里的位置,标记消费读取时自增长 ...
分类:
其他好文 时间:
2020-05-07 19:30:48
阅读次数:
70
Kafka适合离线和在线的消息消费,其消息保存在磁盘上。 Kafka以Topic为单位进行消息的归纳,Producers向Topic发送(Push)消息,Consumers会消费(Pull)预订了Topic的消息。 基本概念 消息队列中的基本概念尤为重要,当对基本概念有了深入的理解之后,消息队列的原 ...
分类:
其他好文 时间:
2020-05-05 20:05:38
阅读次数:
70
一,latest和earliest区别 1,earliest 当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,从头开始消费 2,latest 当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,消费新产生的该分区下的数据 ...
分类:
其他好文 时间:
2020-05-04 17:37:47
阅读次数:
84
1.pinMode(pin,mode) pinMode函数用于配置引脚以及设置输入或输出模式,无返回值。pin参数是要配置的引脚,mode参数表示设置该引脚的模式为输入或输出,即INPUT or OUTPUT。 INPUT用于读取信号,OUTPUT用于控制信号。开发板上的数字输入输出引脚有14个,0 ...
分类:
其他好文 时间:
2020-05-04 15:14:58
阅读次数:
338