一.什么是多态(Polymorphism) 多态(Polymorphism)是面向对象(Object-Oriented,OO)思想"三大特征"之一,其余两个分别是封装(Encapsulation)和继承(Inheritance)--可见多态的重要性。或者说,不懂得什么是多态就不能说懂得面向对象。 多 ...
分类:
编程语言 时间:
2017-09-02 12:14:15
阅读次数:
221
Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 32662 Accepted: 9441 Special Judge Description Let us define a regular br ...
分类:
其他好文 时间:
2017-09-01 19:40:34
阅读次数:
156
Facebook Login JavaScript Example ...
分类:
编程语言 时间:
2017-09-01 18:56:15
阅读次数:
177
Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s ...
分类:
其他好文 时间:
2017-08-31 17:58:42
阅读次数:
157
系统要实现某个全局功能必定要需要各个子模块之间的协调和配合,就像一个团队要完成某项任务的时候需要团队各个成员之间密切配合一样。而对于系统中的各个子线程来说,如果要完成一个系统功能,同样需要各个线程的配合,这样就少不了线程之间的通信与协作。常见的线程之间通信方式有如下几种: 1、wait和notify ...
分类:
编程语言 时间:
2017-08-30 15:29:11
阅读次数:
221
几种 vue的数据交互形式 var that=this get请求 that.$http.get("1.txt").then(function(result){ console.log(result) this.msg=result.data; }) post请求 需要环境 发送数据 接收数据 th ...
分类:
其他好文 时间:
2017-08-29 13:03:37
阅读次数:
198
For an array A, if i < j, and A [i] > A [j], called (A [i], A [j]) is a reverse pair.return total of reverse pairs in A. Example Given A = [2, 4, 1, 3 ...
分类:
其他好文 时间:
2017-08-27 12:00:32
阅读次数:
160
constructor(props) 在创建组件实例的时候调用一次。 componentWillMount() It is called before render(), therefore setting state synchronously in this method will not tr ...
分类:
其他好文 时间:
2017-08-26 21:32:13
阅读次数:
291
Suppose there are the symbols M, I, and U which can be combined to produce strings of symbols called "words". We start with one word MI, and transform ...
分类:
其他好文 时间:
2017-08-21 13:31:15
阅读次数:
148