- 博客(8)
- 资源 (1683)
- 收藏
- 关注
转载 连续赋值与求值顺序var a = {n:1};a.x = a = {n:2}; alert(a.x); // --> undefined
(http://liunian.info/%E8%BF%9E%E7%BB%AD%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%B1%82%E5%80%BC%E9%A1%BA%E5%BA%8F.html)看到一个2010 年的帖子[1],里面讨论了一段 JavaScript 代码:123var a= {n:1};a.x = a
2012-11-30 10:54:46 6077
转载 深入理解JavaScript系列(20):《你真懂JavaScript吗?》答案详解(http://www.cnblogs.com/TomXu/archive/2012/02/10/2342098.)
昨天发的《大叔手记(19):你真懂JavaScript吗?》里面的5个题目,有很多回答,发现强人还是很多的,很多人都全部答对了。今天我们来对这5个题目详细分析一下,希望对大家有所帮助。注:问题来自大名鼎鼎的前端架构师Baranovskiy的帖子《So, you think you know JavaScript?》。答案也是来自大名鼎鼎的JS牛人Nicholas C. Zaka
2012-11-30 10:05:48 2767
原创 The Quiz(http://dmitrysoshnikov.com/ecmascript/the-quiz/#q9)
1. What’s the result of: //stringtypeof typeof(null) ================Q1 Answer===============typeof 是操作符,会返回一个字符串结果表示操作数的类型。typeof(null)返回 "object”,所以 typeof "object"的结果是string2. Are the
2012-11-30 09:59:54 1540
转载 一个讨论引发关于js中函数声明,函数表达式,形参与变量声明赋值引发的一些事(http://www.cnblogs.com/zhouyongtao/archive/2012/11/22/2783089)
//Firefox 17下运行结果function a(){}undefined[function a(){}, 2, 3]ee4446 =======================================Answer=================================在js中所有函数声明(FD)和变量声明都被会提前,所谓的hoistin
2012-11-30 09:42:34 1567
原创 开始收集Javascript的各种疑难问题,并提供解答,有疑问以及新问题请直接跟帖,本人尽量提供回答。
1: 求解释{}和[]的诡异组合(http://blog.csdn.net/kittyjie/article/details/8241924)2:一个讨论引发关于js中函数声明,函数表达式,形参与变量声明赋值引发的一些事(http://blog.csdn.net/kittyjie/article/details/8241984)3:The Quiz(http://blog.csdn.net
2012-11-30 09:22:03 896
原创 求解释{}和[]的诡异组合(http://bbs.51js.com/thread-90593-1-1.html)
大神求解释:[]+[] = "" 这个可以理解为调用了toString{}+{}=NaN 这个就不懂了[]+{}=[object Object] 这是肿么了。。{}+[]=0 小弟崩溃了。。*$**)@&(|#)~这是种马回事啊?==============================================Answer===========
2012-11-30 09:18:40 3944
原创 Javascript Date 常用处理函数
//计算两个日期相差几天几小时Date.diffDayHourString = function(date1,date2){ var date3; if(typeof date1 == "object"){ date3=date2.getTime()-date1.getTime(); //时间差的毫秒数 } else{ date3=date2-date1; //时间差的毫秒数
2012-11-05 21:38:33 2316
转载 QQ协议的各种消息分析
很多人认为QQ的HTTP服务器是基于80口进行通信的(如:218.17.209.23:80),其实不是这样的,真正基于HTTP的服务器应该是:http://tqq.tencent.com:8000,它是一个通过8000口进行通讯的服务器。QQ的HTTP服务器并不支持HTTP协议中GET方法,它支持POST方法。所以我们要给QQ的HTTP协议传参数,那么就必需要用POST方式才行。 下面
2012-11-02 08:42:54 1420
Functional Programming in Swift (2014-10-01)
2015-05-21
The.Creation.and.Science.of.Web.Design.Jan.2009
2009-02-28
Packt.Publishing.Learning.Website.Development.with.Django.Mar.2008
2009-02-28
MS - Microsoft SQL Server 2008 T-SQL Fundamentals (2008.10).
2009-02-28
Microsoft Press - Microsoft Visual C# 2008 Express Edition Build a Program Now!.
2009-02-28
Microsoft .NET Architecting Applications for the Enterprise
2009-02-28
GoF Design Patterns with examples using Java and UML2
2009-02-28
Exploring C++ The Programmer’s Introduction to C++.
2009-02-28
Developing Service-Oriented AJAX Applications on the Microsoft Platform
2009-02-28
Building the Agile Enterprise With SOA, BPM and MBM
2009-02-28
Apress.Pro.Oracle.Application.Express.Sep.2008.eBook-DDU
2009-02-28
jQuery UI 1.6 - The User Interface Library for jQuery (Feb 2009)
2009-02-23
iPhone Open Application Development Second Edition
2009-02-23
I.O.U.S.A. One Nation. Under Stress. In Debt
2009-02-23
Delivering Business Intelligence with Microsoft SQL Server(TM) 2E 2008
2009-02-23
Apress[1].Pro.JavaScript.Design.Patterns.Dec.2007
2009-02-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人