首页 > Web开发 > 详细

js 获取 对象 属性名称(转载)

时间:2019-10-06 17:28:28      阅读:68      评论:0      收藏:0      [点我收藏+]

来源:https://www.cnblogs.com/YuyuanNo1/p/9257634.html

dataObj = {
name : su,
age : 26,
height : 18cm
};
for(var st in dataObj) {
console.dir(st);
}


/////////////打印
name
age
height

js 获取 对象 属性名称(转载)

原文:https://www.cnblogs.com/hao-1234-1234/p/11627680.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!