사악미소
2020. 9. 9. 18:08
참고#01 : https://kutar37.tistory.com/232
참고#02 : https://kutar37.tistory.com/233
참고#03 : https://coderwall.com/p/pluhsg/google-spreadsheet-json-api-sql-filtering
|
/* jQuery.ajax({ url:"https://docs.google.com/spreadsheets/d/1aYCyxPrLVA5gUFpKntNyDYZ0Bj0WOFj3fr6z_m0hq44/gviz/tq?tq=SELECT+A%2cB" , type:"GET" , dataType: "html" , success:function( text ) {
// alert( text.length ); // 문자열 길이 // console.log( text.substring(47, (text.length - 2)) );
// @see 불필요한 데이터를 잘라내고 JSON 형태로 다시 만든다. const sheetJson = JSON.parse(text.substring(47, (text.length - 2)));
console.log( sheetJson.table.rows[0].c[0].v ); // 현재월 console.log( sheetJson.table.rows[0].c[1].v ); // 현재월의 휴장일
console.log( sheetJson.table.rows[1].c[0].v ); // 다음월 console.log( sheetJson.table.rows[1].c[1].v ); // 다음월의 휴장일
console.log("-----------------------------------"); } }); */
|