js构造方法 发表于 2022-03-20 分类于 编程 文章字数:5,阅读全文大约需要1分钟 123456function User(name){ this.name=name; this.type="people";}var user = new User("zhangsan");