摘要: http://www.ruanyifeng.com/blog/2011/05/how_to_judge_the_existence_of_a_global_object_in_javascript.html Javascript语言的设计不够严谨,很多地方一不小心就会出错。 举例来说,请考虑以下情况。现在,我们要判断一个全局对象myObj是否存在,如果不存在,就对它进行声明。用自然语言描述的算法如下: if (myObj不存在){ 声明myObj; }你可能会觉得,写出这段代码很容易。但是实际上,它涉及的语法问题,远比我们想象的复杂。Juriy Zaytsev指出,判断一个Javas... 阅读全文
posted @ 2014-01-13 15:48 ``炯`` 阅读(310) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/do_it__/article/details/6789699但是在chrome下显示的search word并不能垂直居中。后来找了很久终于在stackoverflow上找到了对应的方法。参考:http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding-problem就是一句:把line-height设置为normalline-height: normal; /* for non-ie */line-height: 22px\9; /* for ie */ 阅读全文
posted @ 2014-01-13 10:28 ``炯`` 阅读(3492) 评论(0) 推荐(0) 编辑
摘要: 创建临时表 方法一: create table #临时表名(字段1 约束条件,字段2 约束条件,.....)create table ##临时表名(字段1 约束条件,字段2 约束条件,.....)方法二: select * into #临时表名 from 你的表; select * into ##临时表名 from 你的表;注:以上的#代表局部临时表,##代表全局临时表查询临时表 select * from #临时表名; select * from ##临时表名;删除临时表 drop table #临时表名; drop table ##临时表名;SQL SERVER临时表的使用http://w 阅读全文
posted @ 2014-01-13 09:01 ``炯`` 阅读(5042) 评论(0) 推荐(0) 编辑