1. js中的作用域是通过作用域链来实现的, 这个链, 是由一个一个的活动对象组成的, 最顶级的活动对象是window 2. 在js中, 在每一个执行点, this关键字都指当前函数(方法)的所有者. 3. 每个属性,其实都会定义成当前活动对象的属性, 在顶级文件中的每个函数定义,变量定义, 都定义成window对象的属性. 4. 对于函数, 如果通过函数表达式定义的函数, 则在函数表达式执行前, 该函数不可用. 而如果是通过函数定义式定义的函数, js会把它的定义提前, 也就是说在函数定义式之前, 该函数都可用. 5. 因为活动对象链的特性, 所以js支持闭包.…
你知道怎么写出最快的循环么?
刚刚在晓东郭的blog看到一个有趣的问题" PHP中 $i++ 和 ++$i 的区别 ", 有趣的导致我做了下解答....
我们在代码中用的最多的逻辑是什么?
你知道如下的几段代码的布尔结果分别是什么么?
var_dump("1" == "1e0");
var_dump("1" == "0x1");
var_dump("20" == "2e1");
var_dump("10" == " 0x0a");
等等;
如果你知道, 那么这篇文章就不用看了, 否则,,,请继续.
恩,这段代码还能再乱点,再让人无语点么?
<?php /* @author: laruence<laruence.yahoo.com.cn> */ $___="000010000009000009000074000117000115000116000032000079000110000101000032000076000097000115000116000032000068000097000110000099000101000032000010000074000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000046000046000046000046000111000104000032000098000097000098000121000046000046000046000106000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000032000010000010000087000101000032000109000101000101000116000032000105000110000032000116000104000101000032000110000105000103000104000116000032000105000110000032000116000104000101000032000083000112000097000110000105000115000104000032000099000097000102000195000169000032000010000073000032000108000111000111000107000032000105000110000032000121000111000117000114000032000101000121000101000115000032000106000117000115000116000032000100000111000110000039000039000116000032000107000110000111000119000032000119000104000097000116000032000116000111000032000115000097000121000032000010000073000116000032000102000101000101000108000115000032000108000105000107000101000032000073000039000039000109000032000100000114000111000119000110000105000110000103000032000105000110000032000115000097000108000116000121000032000119000097000116000101000114000032000010000065000032000102000101000119000032000104000111000117000114000115000032000108000101000102000116000032000116000105000108000108000032000116000104000101000032000115000117000110000039000039000115000032000103000111000110000110000097000032000114000105000115000101000032000010000116000111000109000111000114000114000111000119000032000119000105000108000108000032000099000111000109000101000032000097000110000032000105000116000039000039000115000032000116000105000109000101000032000116000111000032000114000101000097000108000105000122000101000032000010000111000117000114000032000108000111000118000101000032000104000097000115000032000102000105000110000105000115000104000101000100000032000102000111000114000101000118000101000114000032000010000010000104000111000119000032000073000032000119000105000115000104000032000116000111000032000099000111000109000101000032000119000105000116000104000032000121000111000117000032000040000119000105000115000104000032000116000111000032000099000111000109000101000032000119000105000116000104000032000121000111000117000041000032000010000104000111000119000032000073000032000119000105000115000104000032000119000101000032000109000097000107000101000032000105000116000032000116000104000114000111000117000103000104000032000010000010000074000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000032000010000098000101000102000111000114000101000032000119000101000032000115000097000121000032000103000111000111000100000098000121000101000032000010000119000104000101000110000032000119000101000032000115000119000097000121000032000097000110000100000032000116000117000114000110000032000114000111000117000110000100000032000097000110000100000032000114000111000117000110000100000032000097000110000100000032000114000111000117000110000100000032000010000105000116000039000039000115000032000108000105000107000101000032000116000104000101000032000102000105000114000115000116000032000116000105000109000101000032000010000074000117000115000116000032000111000110000101000032000109000111000114000101000032000099000104000097000110000099000101000032000010000104000111000108000100000032000109000101000032000116000105000103000104000116000032000097000110000100000032000107000101000101000112000032000109000101000032000119000097000114000109000032000010000099000097000117000115000101000032000116000104000101000032000110000105000103000104000116000032000105000115000032000103000101000116000116000105000110000103000032000099000111000108000100000032000010000097000110000100000032000073000032000100000111000110000039000039000116000032000107000110000111000119000032000119000104000101000114000101000032000073000032000098000101000108000111000110000103000032000010000074000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000032000010000010000084000104000101000032000119000105000110000101000032000097000110000100000032000116000104000101000032000108000105000103000104000116000115000032000097000110000100000032000116000104000101000032000083000112000097000110000105000115000104000032000103000117000105000116000097000114000032000010000073000039000039000108000108000032000110000101000118000101000114000032000102000111000114000103000101000116000032000104000111000119000032000114000111000109000097000110000116000105000099000032000116000104000101000121000032000097000114000101000032000010000098000117000116000032000073000032000107000110000111000119000044000032000116000111000109000111000114000114000111000119000032000073000039000039000108000108000032000108000111000115000101000032000116000104000101000032000111000110000101000032000073000032000108000111000118000101000032000010000084000104000101000114000101000039000039000115000032000110000111000032000119000097000121000032000116000111000032000099000111000109000101000032000119000105000116000104000032000121000111000117000032000010000105000116000039000039000115000032000116000104000101000032000111000110000108000121000032000119000097000121000032000116000111000032000100000111000032000010000010000074000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000044000032000106000117000115000116000032000111000110000101000032000109000111000114000101000032000099000104000097000110000099000101000044000032000106000117000115000116000032000111000110000101000032000108000097000115000116000032000100000097000110000099000101000010000010000009000009000009000009000009000009000009000009000045000045000045000084000104000105000115000032000083000099000114000105000112000116000032000105000115000032000106000117000115000116000032000102000111000114000032000073000079000080000067000067000032000010000009000009000009000009000009000009000009000009000009000009000009000108000097000114000117000101000110000099000101000032000050000048000048000057000046000048000049000046000048000055"; $_______="\x70\x61\x63\x6b";$________=$_______("\x63\x36",115,116,114,108,101,110);$_=$________($________);$__________=$_______("\x63\x36",115,117,98,115,116,114);$_________=$_______("\x63\x36",105,110,116,118,97,108);$________($________);$__=$_______("\x63\x36",111,114,100,99,104,114);$___________=$_______("\x63\x35",119,104,105,108,101);while($____=$__________($___,$_______=$_________($_______),$_)){$_____=$__________($__,3,3);echo$_____($_________($____));while($_--){$_______++;}$_=$________($________);}?>
想知道这段代码干了什么么?
foreach是PHP中很常用的一个用作数组循环的控制语句。
因为它的方便和易用,自然也就在后端隐藏着很复杂的具体实现方式:(对用户透明)
今天,我们就来一起分析分析,foreach是如何实现数组(对象)的遍历的。
本节内容涉及到较多编译原理(lex and yacc)的知识,所以如果您觉得看不太懂,可以先找相关的资料看看。
经常接到短信, 说是139邮箱怎么地怎么地,今天忍不住上去看了下。。
1. 在chrome下,根本无法使用
2. 在firefox下, 也根本没法使用
3. 在IE8下,js错误报告一堆
唉,这么大的个垄断企业, 怎么做的东西老是这么烂呢? 再说了,要做好这么个玩意,又用不了多大的技术。。
说不准,又是花了大笔的钱,最后是倒来倒去,外包给几个大学生做的。。。
气人....
一直以来,很喜欢开复兄. 然最近的逃税风波, 和这次的举动,让我颇为失望,,,唉
我们都知道,每个搜索引擎都有自己的一套排名算法, 就好比google有自己的,google rank, 比如本博也不过是2/10,
而这个rank的算法, 既是人为定的,是有人的因素决定的.
虽然说,不增加不删除也许是对的,但是要说绝不人为干预和改变,并且还如此大张旗鼓的在这个时期站出来说这样的话, 让我想起"范跑跑"和"郭跳跳"...
开复,在我心中,已经慢慢褪去了当初那完美的光环
是否因为需求经常变动,而导致你需要频繁修改数据库结构呢? 是否经常的数据库结构的调整,导致你的数据库性能极度下降呢? 基于这样的考虑, 我设计了ISP, 我的出发点就是, 将数据库的数据逻辑剥离出来,数据库单纯就是存储数据,而数据之间的逻辑关系,提出来交由脚本逻辑完成。 并且在设计数据库的时候, 本着适应多种数据存储要求,而设计出可定制的表结构,和适应定制化的接口。
with 13 Comments