摘要:
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
流畅的心情
阅读(230)
评论(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
流畅的心情
阅读(627)
评论(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
流畅的心情
阅读(5033)
评论(0)
推荐(1)

浙公网安备 33010602011771号