码迷,mamicode.com
首页 >  
搜索关键字:userinfo    ( 1131个结果
C# 中写得很不错的一段代码摘出来
private void LikeMyworkEvent(EditedImg img, bool islike) //点赞自己的作品 { if (ApplicationModel.userInfo != null) { OffLineController.Instance.OffLine(); re... ...
分类:Windows程序   时间:2017-09-22 23:55:02    阅读次数:223
自定义form表单验证
方式一:RegexValidator对象from django.core.validators import RegexValidatorphone = fields.CharField( validators=[RegexValidator(r'^[0-9]+$', '请输入数字'), Regex... ...
分类:其他好文   时间:2017-09-22 18:59:37    阅读次数:147
monggodb 模糊查询
MongoDB的模糊查询其实很简单: 11.LIKE模糊查询userName包含A字母的数据(%A%) SQL:SELECT * FROM UserInfo WHERE userName LIKE "%A%" MongoDB:db.UserInfo.find({userName :/A/}) 12. ...
分类:数据库   时间:2017-09-22 10:14:46    阅读次数:629
前端插件定制--表头和表内容
在前端构造表格的时候往往遇到的情况时写很多的tr和td标签,而且如果需要对数据库进行连接的话就涉及很多的表操作,很容易弄混而且出错,那么应该如何去避免类似情况的发生? 首先我们同样使用之前介绍的Django建立三个数据库,分别为UserInfo,Business和Server。如下代码所示: Ser ...
分类:其他好文   时间:2017-09-21 21:05:24    阅读次数:262
ORM相关性能
user_list = models.UserInfo.object.all() for row in user_list: #只能取当前表数据,否则性能会非常低 select_related,主动连表查询【FK】 user_list = models.UserInfo.objects.all().... ...
分类:其他好文   时间:2017-09-20 20:10:57    阅读次数:209
弹窗地址1
@RequestMapping(value="/profile",method=RequestMethod.GET)publicStringaddressesPage(ModelMapmodel,HttpSessionsession){try{UserInfouserInfo=getUserInfoBySpring();List<Address>address=getPrimaryAddress(userInfo.getUserId());//AddressFormaddressForm=getA..
分类:其他好文   时间:2017-09-20 16:33:44    阅读次数:176
c#系统泛型委托
Action<T> 无返回值的系统泛型委托 namespace ConsoleApp1 { public class UserInfo { public int Id { get; set; } public string Name { get; set; } public int Age { ge ...
分类:Windows程序   时间:2017-09-19 00:20:37    阅读次数:234
Django-models,继承AbstractUser类
1、UserInfo类继承了Django模型自带的User类,需要导入AbstractUser 2、然后在settings.py中配置 ...
分类:其他好文   时间:2017-09-18 22:20:49    阅读次数:239
Oracle基础
--创建用户 create user qjt identified by 1234 --权限 grant connect to qjt grant resource to qjt --建表 create table userinfo (id number primary key not null) ... ...
分类:数据库   时间:2017-09-18 13:24:03    阅读次数:213
Oracle入门
--创建用户create user qjt identified by 1234 --权限grant connect to qjt grant resource to qjt --建表create table userinfo(id number primary key not null) --查询 ...
分类:数据库   时间:2017-09-18 10:53:55    阅读次数:205
1131条   上一页 1 ... 47 48 49 50 51 ... 114 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!