代码改变世界

阅读排行榜

Android Notifition的使用方法

2012-05-02 22:39 by javaspring, 505 阅读, 收藏,
摘要: Notification n=new Notification(R.drawable.ic_launcher,"hello world",System.currentTimeMillis());这是创建一个Notification 的对象,的一个参数是图标,显示在顶部,第二个参数是提示的类容,第三个参数是什么时候提示。PendingIntent pi=PendingIntent.getActivity(this, 0, new Intent(this,TestActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);第一个参数是 阅读全文

使用WebClient或HttpWebRequest模拟上传文件和数据

2012-08-06 21:36 by javaspring, 502 阅读, 收藏,
摘要: 使用WebClient或HttpWebRequest模拟上传文件和数据转载 C# Winform利用POST传值方式模拟表单提交数据(Winform与网页交互) 阅读全文

WinForm多线程+委托防止界面卡死

2012-08-15 17:22 by javaspring, 497 阅读, 收藏,
摘要: 1、当有大量数据需要计算、显示在界面或者调用sleep函数时,容易导致界面卡死,可以采用多线程加委托的方法解决using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Diagnostics; using System.Runtime.InteropServices; 阅读全文

spring mvc 批量上传+文件上传

2012-05-25 15:16 by javaspring, 497 阅读, 收藏,
摘要: spring mvc 批量上传+文件上传简单3步走。搞定!上传文件成功后:1 上传文件核心方法public static String saveWebImgFile(MultipartFile imgFile){ String webFilePath = ""; if(imgFile.getSize() > 0 && isImage(imgFile.getContentType())){ FileOutputStream fos = null; try { byte[] b = imgFile.getBytes(); /* 构造文件路径 */ Str. 阅读全文

Asp.Net+Jquery.Ajax详解5-$.getScript

2012-08-04 16:21 by javaspring, 491 阅读, 收藏,
摘要: 目录(已经更新的文章会有连接,从7月25日开始,每2到3天更新一篇):Asp.Net+Jquery.Ajax详解1-开篇(2012.07.25发)Asp.Net+Jquery.Ajax详解2-$.Load(2012.07.26发)Asp.Net+Jquery.Ajax详解3-$.get和$.post(2012.07.30发)Asp.Net+Jquery.Ajax详解4-$.getJSON(2012.07.31发)Asp.Net+Jquery.Ajax详解5-$.getScript(2012.08.04发)Asp.Net+Jquery.Ajax详解6-$.ajaxSetup(2012.08.06 阅读全文
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 126 下一页