Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
doc:jroboplc:changes [2021/10/03 09:41] denis |
doc:jroboplc:changes [2024/01/16 09:23] (текущий) denis |
||
---|---|---|---|
Строка 2: | Строка 2: | ||
<html> | <html> | ||
- | <pre class="code" id="changes-main"></pre> | + | <pre class="code" id="content"></pre> |
- | + | ||
- | <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | + | |
<script> | <script> | ||
- | fetch("http://prom-auto.ru/download/jroboplc/changes") | + | const url = 'https://prom-auto.ru/download/jroboplc/changes'; |
- | .then((response)=>{ | + | |
- | // console.log(response); | + | |
- | // document.getElementById("changes-main").innerHTML = response.data; | + | fetch(url) |
- | }) | + | .then(response => response.text()) |
- | + | .then(text => { | |
- | + | document.getElementById("content").innerHTML = text; | |
- | axios.get("http://prom-auto.ru/download/jroboplc/changes") | + | |
- | .then(function(response){ | + | |
- | document.getElementById("changes-main").innerHTML = response.data; | + | |
}) | }) | ||
+ | | ||
</script> | </script> | ||