如果在一个类中想要执行另一个类中的方法可以使用通知
1.创建一个通知对象:使用notificationWithName:object: 或者 notificationWithName:object:userInfo:
NSNotification* notification = [NSNotification notificationWithName:kImageNotific...
分类:
移动开发 时间:
2016-04-29 15:45:02
阅读次数:
716
启明星系统底层使用统一接口,特别是用户,用户登录后,都会建立一个 userinfo 的cookie。请看下面2个网址: http://120.24.86.232/book http://120.24.86.232/helpdesk 通常,如果不显式的设置cookie,cookie默认将把userin ...
分类:
移动开发 时间:
2016-04-27 22:18:03
阅读次数:
206
这是一个静态的关于用户信息的界面,首先看一下效果:
接下来是看代码:
//dialog.h
#include
#include
#include
#include
#include
#ifndef DIALOG_H
#define DIALOG_H
#include
class Dialog : public QDialog
{
Q...
分类:
其他好文 时间:
2016-04-26 20:30:53
阅读次数:
181
1.\0 导致JSON无法解析的问题,把\0替换成@""即可。 输出结果:2016-04-26 11:17:58.460 ******[1635:96721] (null), Error Domain=NSCocoaErrorDomain Code=3840 "Garbage at end." Us ...
分类:
其他好文 时间:
2016-04-26 12:27:06
阅读次数:
878
一、表操作之一对多 定义表结构:定义了UserType、两张表UserInfo,如下: from django.db import models class UserType(models.Model): caption = models.CharField(max_length=32) class... ...
分类:
其他好文 时间:
2016-04-23 13:12:23
阅读次数:
154
classUserType(models.Model):caption=models.CharField(max_length=32)classUserInfo(models.Model):user_type=models.ForeignKey(UserType)#user_type对象中封装id,captionusername=models.CharField(max_length=32)Selectinsert一对多django正向1.Models.userinfo.objects.f..
分类:
其他好文 时间:
2016-04-23 01:48:43
阅读次数:
235
一对多 增: 1.外键id添加 2.直接添加外键的对象 查: 正向查询:根据userinfo查usertype 反向查询:根据usertype查userinfo 多对多 增: 正向增: 反向增: 区别总结:区别在于正向查拥有自己创建好的host句柄,可以直接使用add方法添加,而反向查没有,所以要使 ...
分类:
编程语言 时间:
2016-04-21 23:41:12
阅读次数:
314
转 http://www.jb51.net/article/36678.htm 1.userInfo.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT ...
分类:
Web程序 时间:
2016-04-17 13:03:32
阅读次数:
434
关于结对代码复审 项目数据库交互部分结构如下: 其中: 1、MySqlConn负责数据库的连接; 2、UserInfo为用户信息类,UserInfo映射为数据库中用户信息表,创建的一个个用户信息对象映射为用户信息表中的一条条记录; 3、IUserDao是提供的与数据库交互的接口,里面有两个方法,如下 ...
分类:
其他好文 时间:
2016-04-16 22:59:19
阅读次数:
207
1.在没有设置默认值的情况下: SELECT userinfo.id, user_name, role, adm_regionid, region_name , create_time FROM userinfo LEFT JOIN region ON userinfo.adm_regionid = ...
分类:
数据库 时间:
2016-04-16 12:24:47
阅读次数:
377