1. 使用shouldComponentUpdate避免重复渲染 以下代码,只有在count为3的时候才会触发更新 class ClassChild extends React.Component { constructor() { super(); } render() { console.log ...
分类:
其他好文 时间:
2021-06-30 17:54:36
阅读次数:
0
kafka 应用数据读取理论生产者和消费者 生产者:生产数据 消费者:消费生产者产生的数据 对应关系:一个任务可以有多个分组,可以对应多个消费者,但消费者数量不能大于生产者分组数量,多余的也是无用的。(多对多的中的一对一关系) 特性:kafka只需写入一次,可以支持任意多的应用读取全部数据,如果应用 ...
分类:
编程语言 时间:
2021-06-30 17:51:24
阅读次数:
0
一、新的变量声明方式 let/const { let _a = 20; } console.log(a); // a is not defined // ES5 console.log(a); // undefined var a = 20; // ES6 console.log(a); // a ...
分类:
其他好文 时间:
2021-06-30 17:41:18
阅读次数:
0
1.普通函数this指向window; function fn() { console.log('普通函数的this' + this); } window.fn(); 2.对象的方法 this指向调用者O var o={ sayHi:function(){ console.log('对象方法的thi ...
分类:
其他好文 时间:
2021-06-29 15:30:45
阅读次数:
0
一、简介 基于matlab GUI小波、中值、维纳及频域上的滤波 二、源代码 function varargout = dsp1_2(varargin) % DSP1_2 MATLAB code for dsp1_2.fig % DSP1_2, by itself, creates a new DS ...
分类:
其他好文 时间:
2021-06-28 20:33:26
阅读次数:
0
onBusinessSelectChange(selectedKeys, info) { // console.log('selectedKeys changed: ', selectedKeys); // console.log('info changed: ', info); // 已勾选子节点 ...
分类:
其他好文 时间:
2021-06-28 20:17:32
阅读次数:
0
选择结构 if eles 如果条件成立就进入到分支里面执行相应代码,如果不成立,则不会进入 if(条件){ 执行相应代码; }else{ 执行相应代码; } 多分支 if else if if{ }else if{ }else if{ }else{ ? console.log('请输入:');let ...
分类:
其他好文 时间:
2021-06-28 19:49:27
阅读次数:
0
一、基本使用 1、数组的创建 (1) 通过[] let arr1 = [1, 2, 3, 4, 5] (2) 通过创建构造函数 Array的实例 let arr2 = new Array(1, 2, 3, 4, 5) console.log(arr2) // [1, 2, 3, 4, 5] 需要注意 ...
分类:
编程语言 时间:
2021-06-28 19:11:58
阅读次数:
0
封装方法 import axios from 'axios' const allowIP = ['119.133.5.19']; //允许访问 async function getIp() { const res=await axios.get('https://api.ipify.org/')// ...
分类:
其他好文 时间:
2021-06-28 18:55:02
阅读次数:
0
function a1() { return new Promise(o => { console.log("a1") o('a1_1') }) } async function a2() { const _a2 = await a1() console.log(_a2); console.log( ...
分类:
其他好文 时间:
2021-06-28 17:45:59
阅读次数:
0