//生成图片$im =
imagecreatetruecolor(100,30);//生成颜色,当第一次调用生成颜色的方法,是生成背景颜色,默认是黑色//如果想自定义背景颜色,用到imagefill函数$bg
= imagecolorallocate($im,200,200,200);imagefi...
分类:
Web程序 时间:
2014-05-24 01:22:32
阅读次数:
358
JSONArray jsonArr =
JSONArray.toJSONObject("数组/集合"); JSONObject obj =
JSONObject.fromObject("对象");所需的jar
包有:json-lib-2.1.jarjson_simple.jarcommons-l.....
分类:
Web程序 时间:
2014-05-24 01:16:25
阅读次数:
250
ctrl + element public void ctrl(String element){
Actions action=new Actions(driver);
driver.findElement(By.xpath(element)).click(); action.sendKeys...
分类:
Web程序 时间:
2014-05-24 00:52:48
阅读次数:
245
总共分为4个部分:string值,Layout布局设计,MainActivity代码编写,给项目添加使用授权。1. string值
Phone-->res-->values-->strings.xml,代码如下: 手机拨号器 Hello world! Settings
请输...
分类:
移动开发 时间:
2014-05-24 00:49:54
阅读次数:
508
private static string CmdPing(string strIp){Process
p = new Process(); p.StartInfo.FileName =
"cmd.exe";//设定程序名p.StartInfo.UseShellExecute = false; //...
分类:
其他好文 时间:
2014-05-24 00:42:36
阅读次数:
481
string $sel[]=`ls -sl`;float $T[]=`xform -q -ws -t
$sel[0]`;float $R[]=`xform -q -ws -ro $sel[0]`;if (`exists ($sel[0]+"_Con")`==0)
{delete ($sel[0]+"...
分类:
其他好文 时间:
2014-05-23 23:23:38
阅读次数:
318
The "." command is one of the most simple yet
powerful commands in Vim. Itrepeats the last change. For instance, suppose you
are editing an HTML filea...
分类:
其他好文 时间:
2014-05-23 22:52:50
阅读次数:
372
1、作为参数名称说明Format(String,
Object)将指定的String中的格式项替换为指定的Object实例的值的文本等效项。Format(String,array[]()[])将指定String中的格式项替换为指定数组中相应Object实例的值的文本等效项。Format(IForma...
分类:
其他好文 时间:
2014-05-23 12:51:29
阅读次数:
521
在对URL进行编码时,该用哪一个?这两都使用上有什么区别吗?测试:string
file="文件上(传)篇.doc";string Server_UrlEncode=Server.UrlEncode(file);string
Server_UrlDecode=Server.UrlDecode(Ser...
分类:
其他好文 时间:
2014-05-23 12:10:00
阅读次数:
319
File anrFile = null; String status =
Environment.getExternalStorageState(); if
(status.equals(Environment.MEDIA_MOUNTED)) { ...
分类:
其他好文 时间:
2014-05-23 12:08:36
阅读次数:
417