摘要:
一、私有变量 1. 迭代器 const countModule = (function () { let count = 0; function addCount() { count++; return count; } function toZero() { count = 0; return c 阅读全文
posted @ 2020-06-14 16:36
见嘉于世
阅读(288)
评论(0)
推荐(0)
摘要:
ES5继承 function Person(name, age) { this.name = name; this.age = age; } Person.prototype.sayName = function () { alert(`My name is ${this.name}.`); ret 阅读全文
posted @ 2020-06-14 10:18
见嘉于世
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号