回调函数的基础定义 function fn1(f){ f(); fn2(); } function fn2(){ console.log("aaa"); } fn1(fn2); //定义:函数的名字作为另外一个函数的参数传入,叫做回调函数 回调的误区 function fn1(){ console. ...
分类:
Web程序 时间:
2020-07-10 14:52:05
阅读次数:
74
1. plot指令的基本调用格式 (1)plot(x) x为向量时,以该元素的下标为横坐标、元素值为纵坐标绘出曲线 x为实数二维数组时,则按列绘制每列元素值相对其下标的曲线,曲线数等于x数组的列数。 x为复数二维数组时,则按列分别以数组的实部和虚部为横、纵坐标绘制多条曲线 (2)plot(x, y) ...
分类:
其他好文 时间:
2020-07-10 13:41:19
阅读次数:
96
function reduce(arr, callBack ,initVal){ if(!Array.isArray(arr) || !arr.length || typeof callBack != 'function') return []; let hasInitVal = initVal ! ...
分类:
其他好文 时间:
2020-07-10 13:39:11
阅读次数:
68
1, // 获取参数设置 app.get('/getPara', function(req, res) { // console.log(req.hostname); // console.log(req.params); // console.log(req.path); console.log( ...
分类:
Web程序 时间:
2020-07-10 12:59:36
阅读次数:
87
泛型好处:增加类型好处,带来编码的方便 常见的泛型:泛型类和泛型方法,泛型委托(自定义委托,常见的泛型委托(Func,Action)) 泛型类的规范:public class 类名<T>{类的成员}T:仅仅是一个占位符,只要符合c#命名规范即可,但一般使用TT:表示一个普通的数据类型,在使用的时候用 ...
分类:
其他好文 时间:
2020-07-10 11:45:55
阅读次数:
48
Maximum Width of Binary Tree (M) 题目 Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maxim ...
分类:
其他好文 时间:
2020-07-10 10:11:00
阅读次数:
54
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2020-07-10 10:07:44
阅读次数:
60
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2020-07-10 09:54:38
阅读次数:
54
1、函数预编译过程this指向window 2、全局作用域里this指向window 3、call/apply 可以改变函数运行时this指向 4、obj.func( ); func( )里面的this指向obj ...
分类:
其他好文 时间:
2020-07-10 00:45:16
阅读次数:
74
package com.sjw.flink import org.apache.flink.streaming.api.TimeCharacteristicimport org.apache.flink.streaming.api.functions.timestamps.BoundedOutOfO ...
分类:
其他好文 时间:
2020-07-10 00:16:33
阅读次数:
80