码迷,mamicode.com
首页 >  
搜索关键字:parse    ( 5240个结果
switch case 语句
Switchcase语句输入一个年月日,判断是这一年的第几天?Console.WriteLine("请输入年:");intyear=int.Parse(Console.ReadLine());Console.WriteLine("请输入月:");intmonth=int.Parse(Console....
分类:其他好文   时间:2014-12-11 20:40:00    阅读次数:231
Intent启动常用的系统组件
//显示网页:Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it);//显示地图:Uri uri = Uri.parse("geo...
分类:其他好文   时间:2014-12-11 18:47:41    阅读次数:228
【JAVASCRIPT】json 与 string
1. 互相转换JSON.stringify(jsonobj) json对象转化为stringJSON.parse(string) string转化为json,注意{“name”:"hxy","sex":"f"} key与value都要用双引号包起来!!!2. 类似eval(bool...
分类:编程语言   时间:2014-12-11 18:44:41    阅读次数:134
2014-12-11 C# if语句 题目
//判断是否是闰年 int b = int.Parse(Console.ReadLine()); if (b % 4 == 0 && b % 100 != 0) { Console.WriteLine("是闰年"); } else if (b % 400 == 0) { Console.WriteL...
分类:Windows程序   时间:2014-12-11 17:15:05    阅读次数:234
Intent 、Intent Filter 和传输数据
Intent 使用最常使用的是:Intent intent = new Intent();intent.setClass(Main.this,New.class);startActivity(intent);其他的Intent 的使用:打开一个网站:Uri uri = Uri.parse("http...
分类:其他好文   时间:2014-12-11 13:48:04    阅读次数:123
Android-init进程(1)
本节主要内容讲解如何解析init.rc文件和运行zygote. 1.解析init.rc配置文件 /**init.c*/ 在main函数中,执行如下函数: init_parse_config_file("/init.rc");/**init_parse.c*/ int init_parse_config_file(const char *fn) { char *data;...
分类:移动开发   时间:2014-12-11 12:24:10    阅读次数:233
shell自定义函数的测试方法
Shell脚本一般是整个文件一次性执行,也就是说整个文件相当于main函数。但是我只是想运行指定函数该怎么办?其实可以通过运行时使用函数名作为参数运行,说的好像有点抽象,看代码吧。 //firewalltest脚本内容 #!/bin/sh parse_l7() { echo "protocol" echo "maxrate"          echo "$*" } $*...
分类:系统相关   时间:2014-12-10 16:25:08    阅读次数:192
如何诊断cursor pin s wait on x 系列二
如何分析诊断收集信息 1.       查看AWR 报告中high paring 和high version部分内容   具体查看这几个部分的内容:'SQLordered by Parse Calls' or 'SQL ordered by Version Count'     SQL ordered by Parse Calls 关于这部分中的sql 解析执行是否过高,或者...
分类:其他好文   时间:2014-12-10 14:16:56    阅读次数:249
js 将字符串转换成json
1.使用全局的JSON对象,代码如下:function strToJson(str){return JSON.parse(str);} 2.new Function形式,代码如下function strToJson(str){var json = (new Function("return " + ...
分类:Web程序   时间:2014-12-10 12:20:05    阅读次数:124
php的error_reporting设置
// Turn off all error reportingerror_reporting(0);// Report simple running errorserror_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE ...
分类:Web程序   时间:2014-12-10 12:17:19    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!