// 创建一个电脑对象 , 该对象要有颜色 , 重量 , 品牌 , 型号 ,可以看电影 , 听音乐 , 打游戏 ,敲代码
function Jsj(color , zl , pp , xh) {
this.color=color
this.zl = zl
this.pp = pp
this.xh = xh
this.gn = function(gn2) {
console.log(gn2)
}
}
var bbpdn = new Jsj("屎黄色" , "重量10公斤" , "虚昆牌电脑" , "233型")
console.log(bbpdn.color)
console.log(bbpdn.zl)
console.log(bbpdn.pp)
console.log(bbpdn.xh)
bbpdn.gn("可以看电影 , 听音乐 , 打游戏 , 敲代码 , 唱 ,跳 ,rap ,鸡跳舞")
// 2.创建一个按钮对象 , 该对象中包括宽高背景颜色 和点击行为
function Button(width , height , bgcolor) {
this.width = width
this.height = height;