I stuck with one small issue. Rewriting js file from jQuery to native JS, and in jQuery we use:
$.get(`/page`, function (data) {
elem.html(data);
}
basically we fetching body from '/page' and pushing it to elem.innerHTML.
But how I can get html body using fetch() instead of .get()?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…