Using pushState and passing route data via context allows our application to respond to route changes made from Link components, but using the back an ...
分类:
移动开发 时间:
2017-02-03 19:50:08
阅读次数:
273
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:
其他好文 时间:
2017-02-03 15:32:39
阅读次数:
203
方法:Trie 看了题解,有两种做法,大致是相通的。这道题重点在于如何判重。 建立两个trie,取名prefix 和 suffix。把所有string插入第一个trie,每个节点就代表一种prefix。同理,把所有string反转之后插入第二个trie,每个节点就代表一个suffix。如果没有重复的 ...
分类:
其他好文 时间:
2017-01-31 12:55:30
阅读次数:
244
// This example shows how to render pages that perform AJAX calls// upon page load.//// Instead of waiting a fixed amount of time before doing the ren ...
分类:
Web程序 时间:
2017-01-25 16:36:09
阅读次数:
281
1.注册页面抓包看见内容如下: POST http://test.nnzhp.cn/bbs/forum.php?mod=post&action=edit&extra=&editsubmit=yes HTTP/1.1Host: test.nnzhp.cnConnection: keep-aliveCo ...
分类:
编程语言 时间:
2017-01-25 16:26:53
阅读次数:
1806
一、数据备份 1、使用mysqldump命令备份 mysqldump命令将数据库中的数据备份成一个文本文件。表的结构和表中的数据将存储在生成的文本文件中。 mysqldump命令的工作原理很简单。它先查出需要备份的表的结构,再在文本文件中生成一个CREATE语句。然后,将表中的所有记录转换成一条IN ...
分类:
数据库 时间:
2017-01-24 15:47:46
阅读次数:
224
简介 Dubbo是一个来自阿里巴巴的开源分布式服务框架,当当根据自身的需求,为Dubbo实现了一些新的功能,包括REST风格远程调用、Kryo/FST序列化等等。并将其命名为Dubbox(即Dubbo eXtensions),教程一就写生产者,教程二就写消费者 一、生产者工程结构 二、Simple. ...
分类:
其他好文 时间:
2017-01-23 22:42:51
阅读次数:
337
使用锁1)setnx(lockkey, 当前时间+过期超时时间) ,如果返回1,则获取锁成功;如果返回0则没有获取到锁,转向2。2.)get(lockkey)获取值oldExpireTime ,并将这个value值与当前的系统时间进行比较,如果小于当前系统时间,则认为这个锁已经超时,可以允许别的请求 ...
分类:
其他好文 时间:
2017-01-23 18:58:45
阅读次数:
273
Deferred的实现主要是依靠jq的callbaks方法的,他是对callbacks的封装,先来看看callbacks的一段小代码 可以看出cb在调用fire方法时就会执行回调函数,那么他是怎么实现的呢,其实是这样的,callbacks里面有一个数组list用来存储回调函数,而Callbacks通 ...
分类:
其他好文 时间:
2017-01-22 19:12:38
阅读次数:
184
Use watchers to keep an eye on your data. Watchers are methods that are invoked when the specified attribute changes. They are useful when you want to ...
分类:
Web程序 时间:
2017-01-20 20:48:49
阅读次数:
196