package com.xxx.xxx;public class demo1 { /** * java 是由 package 、import 、class 组成 * Java是 先 编译 后执 行 * 用 cmd 执行时, java com.xxx.xxx.demo1 * @param ar...
分类:
编程语言 时间:
2014-12-15 13:24:00
阅读次数:
141
1 2 3 4 5 Document 6 21 22 23 sws24 25 微博26 27 评论28 私信29 @我30 31 ...
分类:
其他好文 时间:
2014-12-14 22:26:31
阅读次数:
246
上个星期我们的产品姐姐让我帮她写个微信里经常看到的滑动翻页效果,今天抽空写了3个小demo(只写了webkit需要chrome模拟手机看 开启touch事件), 故此写个随笔。1、demo1,整个大容器tranlateY(性能应该是最好的,但是如果增删一页的话对css影响很大,如果用sass或les...
分类:
微信 时间:
2014-12-14 21:07:18
阅读次数:
743
//十进制转二进制
class Demo1
{
public static void main(String[] args)
{
int num =6;
int[] arr = new int[32];
int index =0;
while(num!=0)
{
arr[index++] = num%2;
num = num/2;
}
i...
分类:
编程语言 时间:
2014-12-12 01:25:36
阅读次数:
283
class Demo1
{
public static void main(String[] args)
{
//求1--10的累加和
int sum =0;
for(int i=1;i<=10;i++)
{
sum = sum+i;
}
System.out.println("sum="+sum);
/*
sum = sum+1;
...
分类:
编程语言 时间:
2014-12-12 00:03:09
阅读次数:
339
1 //1、声明URL 2 String path="http://localhost:8080/day22_DownLoad/file/a.rmvb"; 3 URL url=new URL(path); 4 //2、设置已下载文件 5 ...
分类:
编程语言 时间:
2014-12-11 19:07:24
阅读次数:
140
1 request.setCharacterEncoding("utf-8"); 2 String name=request.getParameter("name"); 3 //1、设置响应头 4 response.setContentType("a...
分类:
编程语言 时间:
2014-12-11 18:54:36
阅读次数:
162
使用fileupload要添加以下包例子1后台程序 @RequestMapping(value="demo1") public String demo1(HttpServletRequest request,HttpServletResponse response){ return "/demo.....
分类:
编程语言 时间:
2014-12-09 19:19:26
阅读次数:
285
1 //序列化 2 private void btnShow_Click(object sender, EventArgs e) 3 { 4 DataTable dt = new DataTable(); 5 DataC...
分类:
Web程序 时间:
2014-12-05 17:04:10
阅读次数:
131
1、web.xml配置 --Spring Controller 配置 contextConfigLocation /WEB-INF/dispatcher-servlet.xml org.springframework.web.c...
分类:
编程语言 时间:
2014-12-04 21:27:32
阅读次数:
155