js对象属性和方法

var obj = {
name:'我是对象的属性值,name是属性名,',
fn:function(){
console.log('我是对象的方法');
}
}
posted @ 2019-06-18 16:46  一只大鹅  阅读(726)  评论(0编辑  收藏  举报