位置:首页>搜索>web前端:理解js原型链

web前端:理解js原型链

  • web前端:理解js原型链 web前端术语

    游戏数码时间:2025/8/21 18:57:39阅读:977

    工具/材料javascript操作方法01学习原型链之前我们先认识一下构造函数,代码如下:function S() {this.name = 'xxx';this.say = function() { console.log(this.name) } }var s1 = new