Я пытаюсь создать кнопку для обновления страницы через веб-скрипт приложения Google, но метод "window.location .reload();", не работает, может кто-нибудь помочь?
ссылка на приложение Google Script Web: https://script.google.com/d/1jyWe9jm0dI ... difcTFvgQb y-gsIUWeCSmwUzTdnVvXw8LNckG8rXcsyhcYvAcWAN7pU4E05bQEJwZl_1189N-bwyvttAxpHxmbvzUvx_d9SDKh19x3VzY9XxClhXweVlmqdMOSs&uiv=2
Код: Выделить всё
Код: Выделить всё
Код: Выделить всё
Sort
refresh
ID
NOME
DATA
Код: Выделить всё
document.addEventListener("DOMContentLoaded", function(){
google.script.run.withSuccessHandler(gerarTabela).pegarTabelaEstoque();
});
function gerarTabela(dataArray){
var tcorpo = document.getElementById("coportoTabela");
dataArray.forEach(function(r){
var linha = document.createElement("tr");
var coluna1 = document.createElement("td");
coluna1.textContent = r[0];
var coluna2 = document.createElement("td");
coluna2.textContent = r[1];
var coluna3 = document.createElement("td");
coluna3.textContent = r[2];
linha.appendChild(coluna1);
linha.appendChild(coluna2);
linha.appendChild(coluna3);
tcorpo.appendChild(linha);
});
}
function refresh(){
window.location.reload();
}
Подробнее здесь: https://stackoverflow.com/questions/610 ... script-web
Мобильная версия