JavaScript 对象是拥有属性和方法的数据。JavaScript 对象是变量的容器。对象定义你可以使用字符来定义和创建 JavaScript 对象:实例varperson = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}...
分类:
编程语言 时间:
2015-03-18 15:27:51
阅读次数:
145
1.创建表create table test(ID number,NAME varchar2(10),SEX varchar2(4),AGE number,ADDRESS varchar2(200));2.创建不带参数的存储过程create or replace procedure proc1isb...
分类:
数据库 时间:
2015-03-18 12:01:52
阅读次数:
135
在Xcode 4.4 以后的版本,只是用@property,而省略@synthesize。可以省略大括号{}内的内容,@property会在 .m的实现文件中自动生成下划线开头的实例变量,效果与下图一致。(有些教程的形参与实参正好与此相反,注意比较)。自动生成的 _age实例变量是private的,...
分类:
其他好文 时间:
2015-03-18 00:55:59
阅读次数:
146
1.遍历字典
NSDictionary *dictionary = @{@"name": @"jack", @"age": @"18"};
1>for (NSString *key in dictionary) {
id obj = dictionary[key];
}
2>NSArray *keyArray = [dictionary allKeys];
NSArray *value...
分类:
编程语言 时间:
2015-03-17 21:59:03
阅读次数:
172
json_encode() 函数介绍 <?php
$arr = array
(
‘Name‘=>‘希亚‘,
‘Age‘=>20
);
$jsonencode = json_encode($arr);
echo $jsonencode;
?> {"Name":null,"Age":20} $php_json = ...
分类:
Web程序 时间:
2015-03-17 18:24:16
阅读次数:
169
java对象转化为json字符串,关键代码如下: JSONObject json = JSONObject.fromObject(person); String resultStr = json.toString();转化后的字符串形如:{"age":"18","name":"天津犀利妞","password":"123456","sex":"女"}
json需要的jar...
分类:
编程语言 时间:
2015-03-17 18:01:37
阅读次数:
133
'xx', 'age'=>20, 'sex'=>'is_nan', ); session_destroy(); //销毁session if(isset($_SESSION)){ print_r($_SESSION); }el...
分类:
Web程序 时间:
2015-03-17 12:10:56
阅读次数:
135
var str1 ='[{"name":"kevin","age":18},{"name":"rose","age":16}]'; String.prototype.transArray=function(){ var str =this.replace(/\[/,''); var newstr.....
分类:
编程语言 时间:
2015-03-17 07:03:40
阅读次数:
135
方法一:通过配置文件 delete from users where id=#{id} update users set name=#{name}, age=#{age} where id=#{id} ...
分类:
其他好文 时间:
2015-03-17 00:32:55
阅读次数:
178
选课系统表结构如下: 学生表:student(sno,sname,sex,age,class) 课程表:course(cno,cname) 选课表:sc(sno,cno,score) (1)查询选修了‘数据库应用‘的学生学号和姓名 (2)查询选修了3门课程的学生姓名和学号...
分类:
数据库 时间:
2015-03-16 23:21:16
阅读次数:
393