我正在学习Backbone.js(版本1.3.3)。_createElement方法的用途是什么?
有一个线像下面在Backbone.View
(line 1441)
_createElement: function(tagName) {
return document.createElement(tagName);
},
Backbone.View
为什么具有_createElement(tagName)
方法,而不是直接使用 '使用document.createElement(的tagName)'。
程序员可能会忽略_createElement让我们更改CREATING ELEMENT流程!!!!!!!太棒了 –