SC
const blob = new Blob([data], { type: data.type }); - вот пример
Size: a a a
SC
VH
VH
SC
SC
VH
VH
SC
VH
VH
SC
VH
SC
I
request.get(price_url_ru, (err,res,data) = {price = data.price}
Как мне вытащить price за пределы request.get??? Пытался объявить выше, объявлял как массив... не получается.VH
request.get(price_url_ru, (err,res,data) = {price = data.price}
Как мне вытащить price за пределы request.get??? Пытался объявить выше, объявлял как массив... не получается.I
V
VH
I
I
request.get(price_url_ru, (err,res,data) => {
let price;
let regular_price = JSON.parse(data, 'utf8').prices[0].regular_price.raw_value;
if (JSON.parse(data, 'utf8').prices[0].discount_price){
let discount_price = JSON.parse(data, 'utf8').prices[0].discount_price.raw_value;
price = '🇷🇺 ' + discount_price;
} else {
price = '🇷🇺 ' + regular_price;
}
})