码迷,mamicode.com
首页 >  
搜索关键字:assign    ( 1802个结果
php慕课网学习笔记
模板赋值在action.php里面$name='yz';$this->name2=$name;然后在html里面就可以直接调用此name第二种方法:this->assign('变量名',变量值) (可以连续的赋值)$date=date('Y-M-D');$this->assign('name2',....
分类:Web程序   时间:2015-01-05 16:16:26    阅读次数:152
UITextField限制文字的长度 支持中文联想
//UITextField+text_constraints.h@interface UITextField (text_constraints)//考虑到有的地方的文本长度是一个范围eg:2-10,所以使用NSRange@property (nonatomic, assign) NSRange ....
分类:其他好文   时间:2015-01-04 16:49:37    阅读次数:124
ThinkPHP eq neq if 标签
内置标签的使用方法在action文件输出一个变量$title="hello";$this->assign('title',$title);如果title变量的值等于"hello"就输出“相等”否则输出“不相等”相等不相等如果变量alist.description的值不是空则输出变量值,否则输出$co...
分类:Web程序   时间:2014-12-29 22:48:06    阅读次数:412
Alphacode
题目描述 Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just use a very simple code: We'll assign 'A' the code word 1, 'B' wil...
分类:其他好文   时间:2014-12-29 15:24:42    阅读次数:134
[iOS基础控件 - 6.12.3] @property属性 strong weak copy
A.概念 @property 的修饰词 strong: 强指针/强引用(iOS6及之前是retain) weak: 弱智真/弱引用(iOS6及之前是assign) 默认情况所有指针都是强指针 使用 "__weak" 修饰的指针是弱指针 ARC准则:只要没有强指针指向,对象就会被销毁 @propert...
分类:移动开发   时间:2014-12-28 01:43:35    阅读次数:147
Gradle Goodness: Group Similar Tasks
In Gradle we can assign a task to a group. Gradle uses the group for example in the output of $ gradle -t to output all the tasks of the same group to...
分类:其他好文   时间:2014-12-27 21:39:47    阅读次数:193
MKMapView和MKMapViewDelegate
@interfaceMKMapView:UIView@property(nonatomic,assign)iddelegate;//Changingthemaptypeorregioncancausethemaptostartloadingmapcontent.//Theloadingdelegat...
分类:其他好文   时间:2014-12-26 20:08:29    阅读次数:300
多个相似的控件之间的便利与字符的拼接
形如这样的输入会员卡卡好的,要求输入的数字一一对应1、 要定义的变量/// 临时变量@property(nonatomic , strong)UITextField * tempFiled;/// 标记@property (nonatomic ,assign) int tempTag;/// 存储....
分类:其他好文   时间:2014-12-24 14:42:03    阅读次数:181
IOS7 TableView适配
ios7下的app都是全屏的,意思就是所有控制器的view默认都是从屏幕的(0,0)开始。为了达到全屏效果的app,官方为UIviewController增加了几个属性:1 @property(nonatomic,assign) UIRectEdge edgesForExtendedLayout N...
分类:移动开发   时间:2014-12-23 23:58:38    阅读次数:499
JS刷新页面的几种方法(转)
Javascript刷新页面的几种方法:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand(‘Refresh‘)6 window.navigate...
分类:Web程序   时间:2014-12-23 19:14:54    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!