码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
PHP中生成验证码
//生成图片$im = imagecreatetruecolor(100,30);//生成颜色,当第一次调用生成颜色的方法,是生成背景颜色,默认是黑色//如果想自定义背景颜色,用到imagefill函数$bg = imagecolorallocate($im,200,200,200);imagefi...
分类:Web程序   时间:2014-05-24 01:22:32    阅读次数:358
String 转JSON
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
webdriver 键盘模拟事件
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
android手机拨号器实现
总共分为4个部分:string值,Layout布局设计,MainActivity代码编写,给项目添加使用授权。1. string值 Phone-->res-->values-->strings.xml,代码如下: 手机拨号器 Hello world! Settings 请输...
分类:移动开发   时间:2014-05-24 00:49:54    阅读次数:508
c#调用cmd的ping命令
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
【mel】
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
vim摘要
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
String.Format用法
1、作为参数名称说明Format(String, Object)将指定的String中的格式项替换为指定的Object实例的值的文本等效项。Format(String,array[]()[])将指定String中的格式项替换为指定数组中相应Object实例的值的文本等效项。Format(IForma...
分类:其他好文   时间:2014-05-23 12:51:29    阅读次数:521
Server.UrlEncode、HttpUtility.UrlDecode的区别
在对URL进行编码时,该用哪一个?这两都使用上有什么区别吗?测试:string file="文件上(传)篇.doc";string Server_UrlEncode=Server.UrlEncode(file);string Server_UrlDecode=Server.UrlDecode(Ser...
分类:其他好文   时间:2014-05-23 12:10:00    阅读次数:319
无需ROOT就能拿ANR日志
File anrFile = null; String status = Environment.getExternalStorageState(); if (status.equals(Environment.MEDIA_MOUNTED)) { ...
分类:其他好文   时间:2014-05-23 12:08:36    阅读次数:417
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!