首先React与vue有几点相同之处 1.都使用了Virtual DOM 2.提供了响应式(Reactive)和组件化(Composable)的视图组件 3.将注意力集中保持在核心库,而将其他功能如路由和全局状态管理交给相关的库 性能方面 #React在性能方面使用virtual DOM实现没有vu ...
分类:
其他好文 时间:
2017-06-12 13:14:51
阅读次数:
491
示例代码 之前的文章说过,对于MyBatis来说insert、update、delete是一组的,因为对于MyBatis来说它们都是update;select是一组的,因为对于MyBatis来说它就是select。 本文研究一下select的实现流程,示例代码为: selectMailById方法的 ...
分类:
其他好文 时间:
2017-06-11 13:43:10
阅读次数:
278
Design and implement a data structure for a compressed string iterator. It should support the following operations: next and hasNext. The given compre ...
分类:
其他好文 时间:
2017-06-11 13:01:56
阅读次数:
171
Recently I read from a blog that console.log can log text with specific styles. By using "%c" you can indicate that the text should be styled using co ...
分类:
其他好文 时间:
2017-06-11 12:09:51
阅读次数:
156
题目: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example:Given n = 2, return 91. (The answer should be ...
分类:
其他好文 时间:
2017-06-11 11:27:04
阅读次数:
106
h(k) = k mod m When using the division method, we usually avoid certain values of m. Forexample, m should not be a power of 2, since if m^2p, then h(k ...
分类:
其他好文 时间:
2017-06-11 10:12:48
阅读次数:
139
有人问。在ARC下,IBOutlets究竟应该定义成strong 还是 weak ?支持这个答案的人最多。答案仅是摘自官方文档的一个片段: From a practical perspective, in iOS and OS X outlets should be defined as decla ...
分类:
移动开发 时间:
2017-06-10 12:38:52
阅读次数:
276
Physics Experiment Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1031 Accepted: 365 Special Judge Description Simon is doing a physics ex ...
分类:
其他好文 时间:
2017-06-09 20:22:58
阅读次数:
232
https://leetcode.com/problems/sum-of-left-leaves/#/description Find the sum of all left leaves in a given binary tree. Example: Hint: Q: How to define ...
分类:
其他好文 时间:
2017-06-08 18:56:42
阅读次数:
176
#本人新手,仅做学习记录之用 因为工作要求,打开的ui页面,根据前面筛选的条件不同,跳转的新页面不同,本记录涉及的就是有下拉框和没有下拉框,所以要对新打开的页面进行判断;run keyword and return status关键字返回element should be visible 的状态,如 ...
分类:
其他好文 时间:
2017-06-08 17:49:51
阅读次数:
216