09 2017 档案

摘要:var p = {// x and y are regular read-write data properties.x: 1.0,y: 1.0,r:function () { return Math.sqrt( x*x + y*y); }, }; 如果调用 p.r(),会报错的, r函数里面必须要 阅读全文
posted @ 2017-09-30 15:09 流畅的心情 阅读(223) 评论(2) 推荐(0) 编辑
摘要:Testing Properties To check whether an object has a property with a given name. You can do this with the in operator, with the hasOwnProperty() and pr 阅读全文
posted @ 2017-09-30 14:09 流畅的心情 阅读(615) 评论(0) 推荐(0) 编辑
摘要:Logical AND (&&) The && operator can be understood at three different levels. At the simplest level, when used with boolean operands, && performs the 阅读全文
posted @ 2017-09-30 10:59 流畅的心情 阅读(4935) 评论(0) 推荐(1) 编辑
摘要:The Scope Chain JavaScript is a lexically scoped language: the scope of a variable can be thought of as the set of source code lines for which the var 阅读全文
posted @ 2017-09-29 15:51 流畅的心情 阅读(350) 评论(0) 推荐(0) 编辑
摘要:Variables As Properties When you declare a global JavaScript variable, what you are actually doing is defining a property of the global object . If yo 阅读全文
posted @ 2017-09-29 14:38 流畅的心情 阅读(235) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示