0
Google 시트의 개별 셀에서 웹 페이지로 데이터를 가져 오려고합니다. 지금까지 나는 이런 식으로 뭔가를 가지고 :JavaScript에 대한 개별 Google Sheet 셀 값
function loadPrice() {
var url="mygooglesheetslink";
xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState == 4 && xmlhttp.status==200){
document.getElementById("price").innerHTML = xmlhttp.responseText;
}
};
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
<body onload="loadPrice()">
<div id="price"></div>
</body>
그것은 페이지에 시트에서 모든 것을 끌어와 난 그냥 개별적으로 시트에서 셀 값을 배치하는 방법을 알아 내려고 노력하고있어 특히 페이지의 장소.
미리 도움을 주셔서 감사합니다.
당신은'google.script run.withSuccessHandler를 사용하지 않는 이유는() somegasfunction' 문서화 [여기] (HTTPS :.//developers.google.com/apps-script/guides/html/communication). 사용하기가 매우 쉽습니다. 그리고 프로젝트에서 모든 Google Apps 스크립트를 호출 할 수 있습니다. – Cooper