码迷,mamicode.com
首页 >  
搜索关键字:each    ( 14050个结果
将所有div下的所有li的名字设为"哈哈",当点击的时候设为"我被点击了",其余没有点击的依然设为“哈哈”
//将所有div下的所有li的名字设为"哈哈",当点击的时候设为"我被点击了",其余没有点击的依然设为“哈哈” $(function () { var ss = $("div li"); //获取div下的所有li元素 $.each(ss, function () { //遍历获取到的这些li元素 $(...
分类:其他好文   时间:2014-07-27 23:47:49    阅读次数:190
FZU 1901 Period II
Problem DescriptionFor each prefix with length P of a given string S,ifS[i]=S[i+P] for i in [0..SIZE(S)-p-1],then the prefix is a “period” of S. We wa...
分类:其他好文   时间:2014-07-27 22:27:09    阅读次数:249
Remove Duplicates from Sorted Array leetcode java
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space....
分类:编程语言   时间:2014-07-27 21:26:35    阅读次数:267
POJ 3295 Tautology
Tautology Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9446   Accepted: 3596 Description WFF 'N PROOF is a logic game played with dice. Each die has six...
分类:其他好文   时间:2014-07-27 11:32:12    阅读次数:219
dwz 图片查找带回处理
我的需求的,文章要选择封面,用查找带回实现,看了查找带回函数bringBack的代码发现,都是针对input 标签处理的,所以img标签始终不能显示,所以对dwz的源代码做了修改,在dwz.databases.js 中找到函数bringBackSuggest,增加代码如下代码即可:$box.find(":img").each(function(){ var $input = $(this)...
分类:其他好文   时间:2014-07-27 11:16:52    阅读次数:239
Container With Most Water leetcode java
题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e....
分类:编程语言   时间:2014-07-27 11:04:52    阅读次数:278
N-Queens leetcode java
题目:The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return a....
分类:编程语言   时间:2014-07-27 11:00:22    阅读次数:262
spoj cot: Count on a tree 主席树
10628. Count on a treeProblem code: COTYou are given a tree with N nodes.The tree nodes are numbered from 1 to N.Each node has an integer weight.We wi...
分类:其他好文   时间:2014-07-27 10:31:42    阅读次数:304
【leetcode刷题笔记】Text Justification
Given an array of words and a lengthL, format the text such that each line has exactlyLcharacters and is fully (left and right) justified.You should p...
分类:其他好文   时间:2014-07-27 10:05:32    阅读次数:352
题目不难,还是自己懂得代码太少,纯粹凭思维解题。。努力学吧。。
Game PredictionSuppose there are M people, including you, playing a special card game. At the beginning, each player r...
分类:其他好文   时间:2014-07-27 09:44:42    阅读次数:395
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!