markdown JS.Basics.Objects.GetAllPropertiesOfAnObject

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown JS.Basics.Objects.GetAllPropertiesOfAnObject相关的知识,希望对你有一定的参考价值。

var rect1 = {       // rect1 is an object
    x:10,                               
    y: 12,
    width: 50,
    height: 100
}
 
for(var property in rect1) {                                   
    console.log(property);                                                               
}
JS.Basics.Objects.GetAllPropertiesOfAnObject
--------------------------------------------


A [Pen](https://codepen.io/Onlyforbopi/pen/wEbWgJ) by [Pan Doul](https://codepen.io/Onlyforbopi) on [CodePen](https://codepen.io).

[License](https://codepen.io/Onlyforbopi/pen/wEbWgJ/license).

以上是关于markdown JS.Basics.Objects.GetAllPropertiesOfAnObject的主要内容,如果未能解决你的问题,请参考以下文章