实现文件上传需要引入: commons-fileupload-1.3.2.jar commons-io-2.5.jar commons-logging-1.2.jar 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <ti ...
分类:
Web程序 时间:
2016-12-01 03:41:40
阅读次数:
276
五个li前三个都是只改变高、宽、透明度中的其中一个。第四个是链式动画,当鼠标移入的时候先改变高度再改变宽度,最后再改变透明度;当鼠标移出的时候反序恢复,先恢复透明度与,再恢复宽度最后恢复高度。最后一个li是同时运动,使得元素的高宽和透明度同时发生改变。为了实现同时改变引用了json。 json的格式 ...
分类:
Web程序 时间:
2016-11-30 22:37:56
阅读次数:
215
给定一个链表,删除链表中倒数第n个节点,返回链表的头节点。 样例 给出链表1->2->3->4->5->null和 n = 2. 删除倒数第二个节点之后,这个链表将变成1->2->3->5->null. 分析:考虑到鲁棒性 每一种情况都要考虑到 尤其是在删除的是尾节点时 刚开始就没考虑到尾节点。 / ...
分类:
其他好文 时间:
2016-11-30 22:11:04
阅读次数:
178
创建Scrollview的代码,简单,省略。。。。。。。。。 1.添加定时器 // 添加定时器 self.timer = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(pageChange) user ...
分类:
其他好文 时间:
2016-11-30 14:11:37
阅读次数:
227
1.路径问题: 注意 .代表执行程序的文件夹路径,在tomcat中也就是bin目录,所以要用this.getServletContext().getRealPath("/WEB-INF/classes/db.properties");得到绝对路径; 代码练习: ...
分类:
其他好文 时间:
2016-11-30 14:04:43
阅读次数:
210
//// ViewController.m// DemoTest#import "ViewController.h"#import "PageChildViewController.h"@interface ViewController ()<UIPageViewControllerDelegate ...
分类:
移动开发 时间:
2016-11-30 13:28:05
阅读次数:
274
Time Complexity: O(N) The depth of the directory/file is calculated by counting how many "\t"s are there.The time complexity is O(n) because each subs ...
分类:
其他好文 时间:
2016-11-30 07:47:50
阅读次数:
187
Given a linked list, determine if it has a cycle in it. ExampleGiven -21->10->4->5, tail connects to node index 1, return true Challenge Follow up:Can ...
分类:
其他好文 时间:
2016-11-30 03:34:20
阅读次数:
164
public class HuaUtilitityImage: NSObject { // 普通渲染 public func renderingImageWithTintColor(image: UIImage?,_ tintColor: UIColor) -> UIImage?{ return r ...
分类:
编程语言 时间:
2016-11-30 02:40:45
阅读次数:
269