第一种
$(function(){
$('#userInfo').datagrid({
url:'../json/customerAction_getCustomerInfo',
fitColumns:true,
striped:true,
nowrap:true,
loadMsg:'数据正在加载,请稍后...',
...
分类:
其他好文 时间:
2015-05-01 12:06:34
阅读次数:
386
NHibernate使用小示例1.新建Model类库项目。使用代码生成器生成Model类。此处以简单的UserInfo表作为示例。注意字段前必须以virtual修饰。namespace Model{ public partial class UserInfo { publi...
分类:
Web程序 时间:
2015-04-26 19:34:46
阅读次数:
164
//entity为空 是数据库上下文会验证实体验证 var entity = db.UserInfo.Where(u => u.Mobile == mobile).FirstOrDefault(); if (...
分类:
Web程序 时间:
2015-04-25 14:57:27
阅读次数:
124
当有时我们插入一条数据时,由于id很可能是自动生成的,如果我们想要返回这条刚插入的id怎么办呢。在mysql数据中我们可以在insert下添加一个selectKey用以指定返回的类型和值: 方法一: INSERT INTO userinfo (name ,password, age, g...
分类:
其他好文 时间:
2015-04-22 20:08:17
阅读次数:
135
1 IPermission iPer = PermissionFactory.getRemoteInstance();2 UserInfo user = SysContext.getSysContext().getCurrentUserInfo();3 FullOrgUnitInfo...
分类:
其他好文 时间:
2015-04-21 20:22:24
阅读次数:
119
/**
* 开始定时器
*/
-(void)addTimer
{
NSTimer * timer = [NSTimer
scheduledTimerWithTimeInterval:2.0
target:self
selector:@selector(nextPage)
userInfo:nil
repeats:YES];
// 这样 ti...
分类:
其他好文 时间:
2015-04-18 23:47:55
阅读次数:
156
如何获取用户信息?
sence:
1)有微信服务认证号,并已开通功能:网页服务>>网页账号>>网页授权获取用户基本信息
2)设置:网页授权获取用户基本信息 后面的 修改 ,设置成 www.jianshu.com [注脚1]
3)用户已经关注公众号
实现功能:获取用户信息userinfo.
THINK:
网页授权获取用户基本信息
具体而言,网页授权流程分为四步:
1、引...
分类:
微信 时间:
2015-04-16 09:06:41
阅读次数:
292
SBJson解析时报错—json文件字符非法Error Domain=org.brautaset.SBJsonParser.ErrorDomain Code=0 “Illegal start of token [ï]” UserInfo=0x7fd46ad98590 {NSLocalizedDesc...
分类:
移动开发 时间:
2015-04-15 09:34:44
阅读次数:
548
1. 初始化方法有以下三种初始化方法:使用scheduledTimerWithTimeInterval:invocation:repeats:或者scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:这两个类方法创建一个tim...
分类:
移动开发 时间:
2015-04-13 20:35:40
阅读次数:
130
NSTimer可以用来执行一些定时任务,比较常用的方法就是:+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo r...
分类:
其他好文 时间:
2015-04-12 13:20:50
阅读次数:
129