Я пропустил это по возвращении на вызов AJAX. У меня естьОтсутствует это на новом операторе
interar.jsinterar.Remoter = function (data) {
this.server = data.server;
this.init(data);
};
interar.Remoter.prototype.init = function (data) {
var succeedCB, errorCB, lPayload, promiseCB;
succeedCB = function (result) {
// When return the called the this is === window not in.
this.uuid = result.uuid;
console.log("UUID v4 From Server " + this.uuid);
};
errorCB = function() {
console.error("Not Allow to Connect to Server ");
}
// This execute a XHTTPRequest Async call
interar.execute(succeedCB, errorCB, {'w' : data});
};
index.html
var W = new interar.Remoter("mydata");
В возвращении succeedCB это окно не interar экземпляр
К сожалению, в это просто аббревиатура меняю, название. Спасибо за головы ups – Agus
Вместо этого вы должны построить 'interar.Remote'. –
Почему в вашем образце кода есть interar.Remoter = 'и' interar.Remote/* no r * /. Prototype.init = '? Это в вашем исходном коде? Почему «новый interar» вместо «нового interar.Remoter»? –