在safari上,以往屡试不爽的location.href = url; 变得不好用了。使用该方法跳转到新的网页,无法使用后退按钮回到上个页面。想想也是,直接修改值得方式跳转总是怪怪的,但是从刚学网页到现在都是这么用的,也就习惯了。回头看了一下location对象,发现有个assign函数,原来是有...
分类:
移动开发 时间:
2014-09-30 01:38:31
阅读次数:
219
今天看《C++ Primer》的13.1节——Copy, Assign, and Destroy
被这几个玩意儿弄得晕得不行:
◆ Copy Constructor
◆ The Copy-Assignment Operator
◆ Destructor
主要问题集中在:
◆ 我们在什么时候需要自己重写?...
分类:
其他好文 时间:
2014-09-29 00:05:26
阅读次数:
319
index.php: $smarty = new Smarty; $smarty->assign(‘articleTitle‘, "Psychics predict world didn‘t end"); $smarty->display(‘index.tpl‘); index.tpl: {$articleTitle|cat:" yesterday."} OUTPUT: Psychics p...
分类:
其他好文 时间:
2014-09-28 20:29:45
阅读次数:
203
举个例子: NSString*houseOfMM= [[NSStringalloc]initWithString:'装梵几的三室两厅'];上面一段代码会执行以下两个动作:1 在堆上分配一段内存用来存储@'装梵几的三室两厅' ,比如:内存地址为0X1111内容为 '装梵几的三室两厅',2 在栈上分配一...
分类:
其他好文 时间:
2014-09-20 15:15:57
阅读次数:
198
The class styles define additional elements of the window class. Two or more styles can be combined by using the bitwise OR (|) operator. To assign a ...
分类:
其他好文 时间:
2014-09-19 23:40:26
阅读次数:
300
1.模板赋值 如果要在模板中输出变量,必须在在控制器中把变量传递给模板,系统提供了assign方法对模板变量赋值,无论何种变量类型都统一使用assign赋值。 $this->assign('name',$value);
// 下面的写法是等效的
$this->name = $value; assig...
分类:
Web程序 时间:
2014-09-17 13:21:12
阅读次数:
258
1. C++默认调用哪些函数当类中的数据成员类型是trival数据类型(就是原c语言的struct类型)时,编译器默认不会创建ctor、 copy ctor、assign operator、dctor。只有在这些函数被调用时,编译器才会创建他们。这时候我们要自己创建构造函数,初始化内置数据类型。一般...
分类:
编程语言 时间:
2014-09-15 22:37:09
阅读次数:
234
http://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20libx264下载源代码:wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz配置:./confi...
分类:
系统相关 时间:
2014-09-12 09:58:53
阅读次数:
380
-v var=val --assign var=val Assign the value val to the variable var, before execution of the program begins. Suc...
分类:
其他好文 时间:
2014-09-09 17:56:49
阅读次数:
202
= 我的任务 =[[TicketQuery(max=10,owner=$USER, status!=closed|verified|cancelled, order=id,desc=1,format=table,col=status|summary|owner|reporter)]]
分类:
其他好文 时间:
2014-09-09 11:15:18
阅读次数:
201