! function (d, b, c, a) {
Velop.AssignmentQuestionAnswerHandler = function (e) {
this.__construct(e)
};
Velop.AssignmentQuestionAnswerHandler.prototype = {
__construct: function (e) {
this.clientAction = Velop.resolveClientAction("client", true);
this.sectionIdAction = XenForo.getAction("section");
this.$input = e;
this.assignmentQuestionControl = e.closest(".AssignmentQuestionAnswerHandler");
this.$input.change(d.context(this, "save"));
this.lastValue = null
},
...
Я видел выше скрипт в файле js.выпуск с __construct в файле js
Вопрос:
что это означает? __construct: function (e)
? делает это равным constructor: function (e)
? Я видел __construct
в php-файле, но я никогда не видел, что он используется в js-файле.
'__construct' не имеет особого смысла в Javascript, кто просто выбрал это имя. – deceze
В JavaScript нет концепции конструктора. Это только объявление функции с использованием подчеркивания. – skparwal