1、eq() 筛选指定索引号的元素2、first() 筛选出第一个匹配的元素3、last() 筛选出最后一个匹配的元素4、hasClass() 检查匹配的元素是否含有指定的类5、filter() 筛选出与指定表达式匹配的元素集合6、is() 检查元素是否参数里能匹配上的7、map...
分类:
Web程序 时间:
2014-08-13 14:31:06
阅读次数:
306
>>> import zmqTraceback (most recent call last): File "", line 1, in File "zmq/__init__.py", line 54, in raise ImportError("%s\nAre you trying to `i.....
分类:
其他好文 时间:
2014-08-13 14:30:16
阅读次数:
888
html5 自定义数据属性 ,也就是 data-* 自定义属性。 例如 可以有三种方法访问和修改data: 1.使用getAttribute setAttribute 方法 例如 div.getAttribute("data-last-value") 2.使用datase...
分类:
Web程序 时间:
2014-08-13 12:39:26
阅读次数:
153
题目来源:URAL 1684. Jack's Last Word
题意:输入a b 把b分成若干段 每一段都是a的前缀
思路:b为主串 然后用a匹配b 记录到b的i位置最大匹配的长度 然后分割 分割的时候要从后往前
如果a = abac b = abab 那么如果从前往后 首先覆盖了aba 然后b就不能覆盖了 从后往前就可以了 首先覆盖ab 下一次还是ab
因为已经记录了到i位置的最大匹配...
分类:
其他好文 时间:
2014-08-12 22:19:14
阅读次数:
476
二分查找,顾名思义就是分量分查找。采用二分法查找时,数据需是排好序的,这是使用二分查清找的前提。该算法的基本实现思路是: 1.先将数据排序 2.确定中间位置mid=(first+last)/2; 3.比较所要查找的关键字 key与中间位置的关键字的大小,如果比key和mid.k...
分类:
其他好文 时间:
2014-08-12 21:51:54
阅读次数:
328
var imagesrcname='a',thissrolltop=300, lazyLoad=(function(){ var map_element = {}, element_obj = [], download_count = 0, last_offset =...
分类:
其他好文 时间:
2014-08-12 18:43:54
阅读次数:
205
1.检查从库show slave status \G;Slave_IO_Running: YesSlave_SQL_Running: No2.出现类似如下的报错:Last_SQL_Error: Error 'Duplicate entry '1001-164761-0' for key 'PRIMA...
分类:
数据库 时间:
2014-08-12 18:40:54
阅读次数:
257
先睹为快fromdjango.dbimportmodelsclassPerson(models.Model):first_name=models.CharField(max_length=30) last_name=models.CharField(max_length=30) 核心要点 ...
分类:
其他好文 时间:
2014-08-12 13:00:24
阅读次数:
171
class Solution {public: int longestValidParentheses(string s) { vector stack; int maxlen = 0; int curlen = 0; int last ...
分类:
其他好文 时间:
2014-08-12 12:54:04
阅读次数:
169
There is one last gate between the hero and the dragon. But opening the gate isn't an easy task.
There were n buttons list in a straight line in front of the gate and each with an integer on it. Like...
分类:
其他好文 时间:
2014-08-11 21:22:33
阅读次数:
341