模板赋值在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+text_constraints.h@interface UITextField (text_constraints)//考虑到有的地方的文本长度是一个范围eg:2-10,所以使用NSRange@property (nonatomic, assign) NSRange ....
分类:
其他好文 时间:
2015-01-04 16:49:37
阅读次数:
124
内置标签的使用方法在action文件输出一个变量$title="hello";$this->assign('title',$title);如果title变量的值等于"hello"就输出“相等”否则输出“不相等”相等不相等如果变量alist.description的值不是空则输出变量值,否则输出$co...
分类:
Web程序 时间:
2014-12-29 22:48:06
阅读次数:
412
题目描述
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
A.概念 @property 的修饰词 strong: 强指针/强引用(iOS6及之前是retain) weak: 弱智真/弱引用(iOS6及之前是assign) 默认情况所有指针都是强指针 使用 "__weak" 修饰的指针是弱指针 ARC准则:只要没有强指针指向,对象就会被销毁 @propert...
分类:
移动开发 时间:
2014-12-28 01:43:35
阅读次数:
147
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
@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下的app都是全屏的,意思就是所有控制器的view默认都是从屏幕的(0,0)开始。为了达到全屏效果的app,官方为UIviewController增加了几个属性:1 @property(nonatomic,assign) UIRectEdge edgesForExtendedLayout N...
分类:
移动开发 时间:
2014-12-23 23:58:38
阅读次数:
499
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