2010年6月24日

摘要: <script type="text/javascript"> var test = { numA: 10, objB: {}, arrC: [], init: function(){ alert(this.numA); }, sayHi: function(name){ alert("hello " + name); }, sayHelloWorld: function(){ th... 阅读全文
posted @ 2010-06-24 20:18 o0myself0o 阅读(269) 评论(8) 推荐(0)
摘要: var Z = "constructor";Z[Z][Z]("alert('wtf js!')")();// alert wtfjs!点解?发生什么了?Z[Z]// function String(){[native code]}Z[Z][Z]// function Function(){[native code]}解释: Z[Z]-->string["constructor"]-->... 阅读全文
posted @ 2010-06-24 12:27 o0myself0o 阅读(270) 评论(0) 推荐(0)

导航