Jump to content
  • Sign Up

sviat78

Newbie
  • Posts

    6
  • Joined

  • Last visited

Everything posted by sviat78

  1. Ураааа! Получилось! Спасибище огромное!!
  2. Сделал вот так и выводит "undefined"
  3. Не получается, пишет "NaN"
  4. Здравствуйте! Прошу помощи, моих начальных знаний не достаточно... Есть модуль, который вытягивает число с другого сайта: <div class="lpg-informer-09384"> <script type="text/javascript" src="https://ueex.com.ua/informer_ugd.js?width=300&width_type=px&lang=rus&n=2&encoding=utf&noborder=1¤cy=uah&pluscolor=green&showcurrencies=1"></script> </div> <script> const table = document.querySelectorAll('.lpg-informer-09384 span') const cost = [] let data = '' table.forEach((item, index) => { if(index === 9) { const arr = item.childNodes for(let i of arr) { cost.push(i) } } }) cost.forEach((item, i) => { if(i === 0) { const str = item.data.slice(0,6) data = str } }) window.dataLPGInformer = data </script> И выводит на сайте: <div class="lpg-informer-inner-09384"> <script> const root = document.querySelector('.lpg-informer-inner-09384') root.innerHTML = `<div class="lpg-informer-price"> <span> ${window.dataLPGInformer}</a> </span> </div>` // document.write(``) </script> </div> Не могу прибавить к этому числу "1000". Выходит как "28 3321000" - то есть 28 332 + 1000 = 28 3321000... А надо 29332... Заранее благодарен за содействие!
  5. Большое тебе СПАСИБО, добрый человек!
  6. Здравствуйте. Хочу вытащить два числа из таблицы на другом сайте и разместить на своем Id ячеек такие: 000000131t и 000000131l (скрин прилагается) Ума не приложу, как это сделать... Помогите, плиз!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy