all < index < ref < eq_ref < const(system) < Null 全表 < index < 辅助索引 < 多表辅助索引 < primary key/unique < Null 查看使用的索引类型 desc select * from test; >>> 可能走的索引 ...
分类:
其他好文 时间:
2020-11-10 11:21:30
阅读次数:
6
Promise是异步编程的一种解决方案,也是ES6的写法,它其实是一个构造函数,自己身上有all、reject、resolve这几个方法,原型上有then、catch等方法。 不多说,直接上代码: const promise = new promise(function(resolve, rejec ...
分类:
其他好文 时间:
2020-11-10 11:17:47
阅读次数:
7
原理:就是监听页面滚动事件,分析clientHeight、scrollTop、scrollHeight三者的属性关系。 window.addEventListener('scroll', function() { const clientHeight = document.documentEleme ...
分类:
Web程序 时间:
2020-11-10 11:04:36
阅读次数:
17
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 const int N=1010; 6 7 int dp[N][N]; 8 int w[N],v[N]; 9 int n,m; 10 11 int main() ...
分类:
其他好文 时间:
2020-11-10 10:43:32
阅读次数:
7
偏函数应用(Partial Application)是指固定一个函数的某些参数,然后产生另一个更小元的函数。而所谓的元是指函数参数的个数,比如含有一个参数的函数被称为一元函数。 偏函数应用(Partial Application)与函数柯里化很容易混淆,它们之间的区别是: 偏函数应用是固定一个函数的 ...
分类:
其他好文 时间:
2020-11-10 10:30:28
阅读次数:
7
int cmp(const void* a,const void* b){ return *(int*)a-*(int*)b; } double trimMean(int* arr, int arrSize){ qsort(arr,arrSize,sizeof(int),cmp); int num= ...
分类:
编程语言 时间:
2020-11-10 10:28:59
阅读次数:
9
题目大意 一只青蛙现在在一个数轴上,它现在要从点 $1$ 跳到点 \(n\) ,它每次可以向右跳不超过 \(d\) 个单位。比如,它可以从点 \(x\) 跳到点 \(x+a\)($1\le a\le d$) 。 特别的,青蛙只能在有百合花的点上停留。保证点 $1$ 和点 \(n\) 之间有一些点有百 ...
分类:
其他好文 时间:
2020-11-08 17:15:30
阅读次数:
19
C++内存配置操作和释放操作如下: 1 class Foo{...}; 2 Foo* pf=new Foo; //配置内存,然后构造对象 3 delete pf; //将对象析构,然后释放内存 内存配置操作由 alloc:allocate() 负责,内存释放操作由 alloc:deallocate( ...
分类:
其他好文 时间:
2020-11-07 17:27:54
阅读次数:
21
TiToData:专业的短视频数据采集、处理平台。 更多信息请联系: TiToData 海量数据采集 每天为客户采集5亿条数据 覆盖主流平台:TikTok,Zynn,YouTube,抖音,快手,1688,小红书,拼多多,淘宝,美团,饿了么,淘宝,微博 请求Api http://主机地址/douyin ...
循环下的异步 let inner = ['in1','in2','in3']; function runTask(){ console.log('任务开始') for (let index = 0; index < inner.length; index++) { const i = inner[i ...
分类:
其他好文 时间:
2020-11-07 17:04:10
阅读次数:
22