1,如果你使用的是firefox作為默認(rèn)瀏覽器,到C:\WINDOWS\system32\Macromed\Flash 拷貝NPSWF32.dll到 firefox的plugins文件夾里
2.window - perferences -general - web browser -選中firefox或者IE 千萬(wàn)別選"default system web browser"
shutdown.exe
直接 點(diǎn) "開(kāi)始"===>"運(yùn)行"
在框里輸入:
1.你要在00:00關(guān)機(jī) 就輸入(不含冒號(hào)): "at 00:00 Shutdown -s"
2.你要在一小時(shí)后關(guān)機(jī),輸入(不含冒號(hào)): "Shutdown.exe -s -t 3600"
3.設(shè)置錯(cuò)了,你要取消: "shutdown -a"
-t 倒計(jì)時(shí)時(shí)間
-s 關(guān)機(jī)
-a 停止關(guān)機(jī)
-c 設(shè)置提示信息
注意:在XP下測(cè)試通過(guò)
JSON采用完全獨(dú)立于語(yǔ)言的文本格式,易于人閱讀和編寫,同時(shí)也易于機(jī)器解析和生成。所以是數(shù)據(jù)中轉(zhuǎn)與傳輸?shù)膬?yōu)選。下面就是經(jīng)常用到的一些特性。本文所指都是
json-lib的用法
1.json--->List<YOUR_CLASS>
2.json-->YOUR_CLASS
1
JSONObject json=JSONObject.fromObject(fmsStr);
2
FMS fms=(FMS)JSONObject.toBean(json, FMS.class);
3.json--> bean轉(zhuǎn)換日期格式
1
JSONObject json=JSONObject.fromObject(fmsStr);
2
String[] dateFormats = new String[] {"yyyy-MM-dd"};
3
JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(dateFormats));
4
FMS fms=(FMS)JSONObject.toBean(json, FMS.class);
5
6
其中fms有一個(gè)屬性day:1991-12-2
4.json-->bean過(guò)濾一些不需要或json字符串中沒(méi)有賦值的項(xiàng)使用JSONConfig

JSONArray jsonArray = JSONArray.fromObject([{a:"astr",b:"bstr",c:"cstr",d:"dstr"},{a:"astr1",b:"bstr1",c:"cstr1",d:"dstr1"}]);
JsonConfig jc=new JsonConfig();
jc.setRootClass(FMS.class);

String[] dateFormats = new String[] {"yyyy-MM-dd"};
JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(dateFormats));
jc.setArrayMode(JsonConfig.MODE_OBJECT_ARRAY);

jc.setJsonPropertyFilter(new PropertyFilter(){

public boolean apply(Object sourse, String name, Object value) {

if(name.equals("a")||name.equals("b")||name.equals("c")||name.equals("d")){
return true;
}

else{
return false;
}
}
});
FMS[] oArray=(FMS[]) JSONArray.toArray(jsonArray, jc);


FMS-->有 a b c d 屬性