- 博客(3)
- 收藏
- 关注
转载 小部件的生命周期
dijit._WidgetBase Introduction dijit._WidgetBase is the base class for all widgets in dijit, and in general is the base class for all dojo based widgets. Usually widgets also extend other mixins such asdijit._TemplatedMixin. Note that the underscore in.
2020-07-14 23:34:47
192
原创 this.inherited(arguments)
this.inherited(arguments) 这是dojo内部的一个方法,作用是调用父类中的同名方法,例如: startup: function() { if (this._started) { return; } var children = this.getChildren(); array.forEach(children, function (child) { child.startup(); }); t.
2020-07-14 23:09:11
516
转载 JavaScript this 关键字
JavaScript this 关键字 面向对象语言中 this 表示当前对象的一个引用。 但在 JavaScript 中 this 不是固定不变的,它会随着执行环境的改变而改变。 在方法中,this 表示该方法所属的对象。 如果单独使用,this 表示全局对象。 在函数中,this 表示全局对象。 在函数中,在严格模式下,this 是未定义的(undefined)。 在事件中,this 表示接收事件的元素。 类似 call() 和 apply() 方法可以将 this 引用到任何对象。 复制自https:
2020-07-14 22:58:45
122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人