1、对于string,number等基础类型,==和===是有区别的1)不同类型间比较,==之比较“转化成同一类型后的值”看“值”是否相等,===如果类型不同,其结果就是不等2)同类型比较,直接进行“值”比较,两者结果一样2、对于Array,Object等高级类型,==和===是没有区别的进行“指针...
分类:
Web程序 时间:
2014-05-22 05:12:31
阅读次数:
340
/** * @return the ${bare_field_name} *//** *
@param ${param} the ${bare_field_name} to set *//** * ${tags} *//** *
项目名称:${project_name} * 文件名称:${file_...
分类:
系统相关 时间:
2014-05-22 04:52:37
阅读次数:
302
Maximum continuous sub-array.
分类:
其他好文 时间:
2014-05-22 04:36:26
阅读次数:
232
/**根据完美二叉树或者非完美二叉树都可以,利用左右子树的根节点的next节点信息来连接next*/public void
connect(TreeLinkNode root){ if(root==null) return; //利用父节点的next...
分类:
其他好文 时间:
2014-05-22 03:03:39
阅读次数:
183
Find 2 numbers with given sum in sorted array.
分类:
其他好文 时间:
2014-05-22 01:53:17
阅读次数:
288
Find a number which appears once in an array with
all the other numbers appear twice.
分类:
其他好文 时间:
2014-05-22 01:08:40
阅读次数:
278
Reorder an array so that odd numbers come
before even numbers.
分类:
其他好文 时间:
2014-05-22 00:38:39
阅读次数:
259
一:字符替换:strtr > str_replace >
preg_replace注意:1:一般用strtr函数的这种形式:string strtr ( string $str , array
$replace_pairs )2:如果 replace_pairs 中包含一个空 字符串 (...
分类:
Web程序 时间:
2014-05-21 23:40:35
阅读次数:
357
一、开始调式下面的程序,发现Button在js中设置disabled后无法执行后台代码(btnsave_Click)问题二、有的朋友会认为在js代码后面加上
return true就可以了,但这样也是不可行的。 OnClientClick是执行客户端代码,客户端被禁用了,OnClick是在Subm....
分类:
其他好文 时间:
2014-05-21 23:14:54
阅读次数:
4645
package lbi.flow.util;import
net.sf.json.regexp.RegexpMatcher;public class RegexpUtils { /** *
匹配7c:d1:c3:73:d6:72形式mac * * @return ...
分类:
其他好文 时间:
2014-05-21 03:13:44
阅读次数:
288