有关Array的方法: 1._.chunk(array, [size=1]),返回size长度数组组成的新数组 _.chunk(['a', 'b', 'c', 'd'], 2); // => [['a', 'b'], ['c', 'd']] _.chunk(['a', 'b', 'c', 'd'], ...
分类:
其他好文 时间:
2021-06-10 18:10:30
阅读次数:
0
浏览器会从计算机的内存条中分配对应的内存,用于存储值和运行代码 Stack:栈内存 ECStack(Execution Context Stack) 原始值类型存储在栈内存中 提供对应的执行上下文EC(Execution Context)供代码执行 Heap:堆内存 存储对象类型的值 举例:基于一段 ...
分类:
编程语言 时间:
2021-06-10 18:10:13
阅读次数:
0
Redis的数据类型和底层数据结构 Redis的数据类型 string字符串类 Redis的String能表达3种值的类型:字符串、整数、浮点数 常见操作命令如下表: 命令名称命令格式命令描述 set set key value 赋值 get get key 取值 getset getset key ...
分类:
其他好文 时间:
2021-06-10 18:04:56
阅读次数:
0
三角形模板 const int N = 1e5 + 50; const ld PI = acos(-1.0); const ld eps=1e-8; int sgn(ld x) { if(fabs(x)<eps)return 0; return x<0?-1:1; } struct Point { ...
分类:
其他好文 时间:
2021-06-10 17:53:30
阅读次数:
0
场景: WPF界面调用C++动态库,由于库的名称不是固定的,因此没法用DllImport,想到了用windows api中的LoadLibrary,一番折腾后调用成功 关键代码: [DllImport("kernel32.dll")] private extern static IntPtr Loa ...
分类:
编程语言 时间:
2021-06-10 17:47:35
阅读次数:
0
数据类型 强类型语言 安全性高,速度慢 要求变量都必须先定义后才能使用 弱类型语言 Java数据类型分为 基本类型 引用类型 八大基本数据类型(primitive type) //整数Itint num = 1;//最常用byte num2 = 20;short num3 = 30;long num ...
分类:
其他好文 时间:
2021-06-10 17:40:26
阅读次数:
0
select 与 bind:value、option 与 value、multiple ...
分类:
其他好文 时间:
2021-06-10 17:39:55
阅读次数:
0
在http 协议中,post 提交的数据需放在消息主体的,但协议并没有规定必须使用什么编码方式,从而导致了提交方式的不同。服务端根据请求同一种的 Content-Type 字段来获取请求中消息主体是用何种方式进行编码,再对消息主体进行解析。 具体的编码方式有: - application/x-www ...
分类:
其他好文 时间:
2021-06-10 17:37:22
阅读次数:
0
<div v-mydirect:fn="item"></div> Vue.directive('mydirect', { bind (el, binding,vnode) { let that = vnode.context that[binding.arg](binding.value) } }) ...
分类:
其他好文 时间:
2021-06-10 17:34:26
阅读次数:
0
依赖的包为reflect。 Kind():返回最基础的类型。 type Kind uint const ( Invalid Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Floa ...
分类:
其他好文 时间:
2021-06-09 15:36:10
阅读次数:
0