This question has already been answered:
- Loss of context call 5 responses
Good day, it may be a silly question, but the hunt is beautiful, do not scold too much :)
There is, say, the following code, and there is also a question:
function OrderAjax(param) { this.emptyDetailPicture = param.emptyDetailPicture; this.jsData = param.jsData; } OrderAjax.prototype = { constructor: OrderAjax, renderBasket: function() { $.each(this.jsData['items'], function(index, item) { //Как вот сюда красиво достать значение this.emptyDetailPicture? }); } } Thank you in advance :)