class Child extends React.Component{ constructor(props){ super(props); this.myRef=React.createRef(); } componentDidMount(){ console.log(this.myRef.cur ...
分类:
其他好文 时间:
2019-03-14 18:33:59
阅读次数:
150
1.layui 左边菜单栏:点击"订单列表"刷新 $('.layui-nav-child').click(function(data){ var link = data.target; if(link.text == "订单列表"){ var l=top.layui; l.index.openTab ...
分类:
其他好文 时间:
2019-03-14 18:27:52
阅读次数:
161
A unival tree (which stands for "universal value") is a tree where all nodes under it have the same value. Given the root to a binary tree, count the ...
分类:
其他好文 时间:
2019-03-13 21:47:53
阅读次数:
152
题意 "链接" Sol 生成函数博大精深Orz 我们设$f(i)$表示权值为$i$的二叉树数量,转移的时候可以枚举一下根节点 $f(n) = \sum_{w \in C_1 \dots C_n} \sum_{j=0}^{n w} f(j) f(n w j)$ 设$T =n w$,后半部分变为$\su ...
分类:
其他好文 时间:
2019-03-13 16:38:13
阅读次数:
174
IDEA 运行报错 failed to create a child event loop 防火墙 ...
分类:
其他好文 时间:
2019-03-13 16:25:44
阅读次数:
257
1.以复制方式实现的继承 1.1浅拷贝 基本类型的复制 以上代码中,通过一个extend()函数,将父对象parent的属性遍历赋给子对象child,从而实现继承。 但是这种字面量复制的方式存在巨大的缺陷,当父对象有引用类型的属性时,通过这么复制的方式,就像上一节中的var b = a一样,只会将a ...
分类:
Web程序 时间:
2019-03-13 00:12:03
阅读次数:
230
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2019-03-11 11:54:35
阅读次数:
186
题目如下: Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenate ...
分类:
其他好文 时间:
2019-03-11 10:35:13
阅读次数:
211
local MyTableView = class("MyTableView") MyTableView.__index = MyTableView MyTableView.property = {} --这里是为了让layer能调用MyTableView的方法 function MyTableVi ...
分类:
其他好文 时间:
2019-03-10 23:29:29
阅读次数:
314