"); while($row = mysql_fetch_object($rs)){ print ($row->name.":".$row->age.""); } mysql_close($conn); ?> 显示如下: Resource id #1 dd:54 ddd:8 ??:1...
分类:
Web程序 时间:
2014-08-20 16:10:32
阅读次数:
236
jsonp数据jsonpHandler({name:"liujinyu",age:"24"})ajax调用$.ajax({ type:'GET', url:"http://10.14.85.90/data/people.html", dataType:'jsonp', cache:true, asy...
分类:
Web程序 时间:
2014-08-20 12:20:02
阅读次数:
245
在C++11之前,初始化的类型并非总是统一的。
例如以下两个man定义,一个作为结构,一个作为类。两者的初始化是不一样的。
#include
using namespace std;
struct manStruct{
string name;
int age;
};
class manClass
{
private:
string name;
int age;
public:
m...
分类:
编程语言 时间:
2014-08-19 22:34:35
阅读次数:
240
1.简单的json格式{"user":[{"name":"name1","age":24,"sex":"男"},{"name":"name2","age":24,"sex":"男"},{"name":"name3","age":24,"sex":"男"}]}
分类:
Web程序 时间:
2014-08-19 12:52:04
阅读次数:
197
#import @interface Father : NSObject @property (nonatomic,copy) NSString *name;@property (nonatomic,retain) NSNumber *age;-(id) initWithName:(NSString...
分类:
移动开发 时间:
2014-08-19 00:57:13
阅读次数:
316
#import #define CHILD_WEAK_NOTIFC @"childe_week"@interface Child : NSObject@property (nonatomic,assign) int age;@property (nonatomic,assign) NSInteger...
分类:
移动开发 时间:
2014-08-19 00:47:13
阅读次数:
298
读取db.collection.find()db.users.find( { age: {$gt: 18}}, {name: 1, address: 1}).limit(5).sort({age:1})users是collection名字,从users中查找;age是query crit...
分类:
数据库 时间:
2014-08-18 16:14:42
阅读次数:
238
OC点语法和变量作用域一、点语法(一)认识点语法声明一个Person类: 1 #import 2 3 @interface Person : NSObject 4 { 5 int _age;//默认为@protected 6 } 7 8 - (void)setAge:(int)age;...
分类:
其他好文 时间:
2014-08-18 14:27:02
阅读次数:
166
Options -Indexes
Header set Cache-Control "max-age=2592000, public"
Header set Cache-Control "max-age=604800, public, max-age"
Header set Cache-Control "max-age=18000, max-age"
Options...
分类:
数据库 时间:
2014-08-18 10:48:43
阅读次数:
248
#import @interface Person : NSObject@property(nonatomic,copy) NSString *name;@property(nonatomic,retain) NSNumber *age;-(void) setNewName:(NSString *)...
分类:
移动开发 时间:
2014-08-18 01:30:33
阅读次数:
230