摘要: js构造函数及其对象 ES5 function Person(age) { this.name = '张三' this.age = age this.talk = function () { alert('hello') } } 首字母大写 构造函数中的this.属性,this指向实例对象 使用ne 阅读全文
posted @ 2022-08-15 12:45 一个斯帕纳 阅读(125) 评论(0) 推荐(0)