代码检测textarea内填写的长度,未填写时提示需要重新填写,少于15字符时提示需要长于15字符,成功时显示所填写建议。 1 25 26 27 28 29 >关键点1.必须要有onSubmit="return confirm();" return 这个词,不可缺少。2.自行完整的网页结构。
分类:
Web程序 时间:
2015-07-09 00:12:24
阅读次数:
212
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INTpublic class Solution { //本题很多细节需要考虑: ...
分类:
其他好文 时间:
2015-07-09 00:11:06
阅读次数:
124
项目中当关闭tabs选项卡时,底部footer需要通过javascript重新定位calcFooter(),如何实现呢?选项卡上的关闭图标的方法是easyui自带的,calcFooter()写在onClose中不起作用,API中没有关闭后的方法,但有个关闭之前的方法onBeforeClose,在onBeforeClose方法中先实现onClose()方法,再calcFooter(),再return...
分类:
Web程序 时间:
2015-07-08 22:35:40
阅读次数:
250
1 //当有很多种cell时的写法-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 2 { 3 return [self.theDataSour...
分类:
移动开发 时间:
2015-07-08 22:29:46
阅读次数:
166
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2015-07-08 22:25:13
阅读次数:
137
加载一个视图控制器依次调用:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES;}- (void)vie.....
分类:
其他好文 时间:
2015-07-08 22:24:31
阅读次数:
141
Binary Tree Level Order Traversal 题目链接 题目要求: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, lev...
分类:
其他好文 时间:
2015-07-08 22:23:27
阅读次数:
156
Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 ...
分类:
其他好文 时间:
2015-07-08 22:21:12
阅读次数:
121
NSString *urlString;urlString=[self URLDecodedString:urlString];-(NSString *)URLDecodedString:(NSString*)str{ return (__bridge NSString *)CFURLCreat.....
分类:
Web程序 时间:
2015-07-08 22:19:30
阅读次数:
150
Summary RangesGiven a sorted integer array without duplicates, return the summary of its ranges.For example, given[0,1,2,4,5,7], return["0->2","4->5",...
分类:
其他好文 时间:
2015-07-08 22:16:05
阅读次数:
120