1.在AndroidManifest.xml中注册
2.在Activity中注册MyReceiver receiver = new MyReceiver();IntentFilter filter = ne...
分类:
移动开发 时间:
2014-05-09 16:24:54
阅读次数:
432
function stringToDate(fDate){ var fullDate =
fDate.split(" ")[0].split("-"); var fullTime = fDate.split(" ")[1].split(":");
return ...
分类:
其他好文 时间:
2014-05-09 16:20:34
阅读次数:
244
cls1里有一个aa() 假设所有成员都是public; 如果cls2继承cls1时 cls1 my
= new cls1();my.aa(); 这个好说当然是执行cls1的aa方法啦(这不废话嘛^_^) 别丢板砖 继续 mycls2 my = new
mycls2();my.aa(); 这个比上....
分类:
其他好文 时间:
2014-05-09 16:18:36
阅读次数:
262
class Program { public static void Main(string[]
args) { int i=0; String[] urlarray = new String[] { "http://ww...
分类:
Web程序 时间:
2014-05-09 16:06:58
阅读次数:
327
CDC 应该是成对使用 GetDC and ReleaseDC(不用new and delete)泄露
分类:
其他好文 时间:
2014-05-09 15:51:28
阅读次数:
222
using System;using
System.Collections.Generic;using System.Linq;using System.Text;using
System.Threading.Tasks;namespace OverrideTest{ class A {...
分类:
其他好文 时间:
2014-05-09 13:43:24
阅读次数:
291
做毕设的时候,一字段,在MySQL数据库中是date类型,后台处理是java.sql.Date类型,但是从页面上获取到的是字符串
处理: import java.text.SimpleDateformat; SimpleDateFormat sft = new
SimpleDateForm...
分类:
数据库 时间:
2014-05-09 13:25:19
阅读次数:
404
AJAX的底层实现都是浏览器提供的,所以任何基于api上面的框架或者库,都只是说对于功能的灵活与兼容维护性做出最优的扩展ajax请求的流程:1、通过
new XMLHttpRequest 或其它的形式(指IE)生成ajax的对象xhr。2、通过xhr.open(type, url, async, u...
分类:
Web程序 时间:
2014-05-09 13:11:06
阅读次数:
544
例子1引入线程概念通过得到当前线程方式循环主线程做某事例子2演示了在主线程之外开启多个线程的基本方式 ( new一个extends Thread )例子3 (
task extends Thread )演示了 把线程类做为一个窗口组件的一个属性当按钮按下时 会new一个task (start在tas...
分类:
编程语言 时间:
2014-05-09 09:01:38
阅读次数:
320
import java.lang.reflect.Field;
public class ReflectClass3 {
/**
* @param args
*/
public static void main(String[] args) {
Person p = new Person(1, "ctl", true, 'c', 2.0f, 2.0, 1L, (short) 1...
分类:
编程语言 时间:
2014-05-09 06:18:19
阅读次数:
580