[英]How do I pull text from multiple cells in a google spreadsheet to website each in a different <p> tag?
[英]How to pull data from google spreadsheet to a website?
使用桌面庫https://github.com/jsoma/tabletop,您可以執行以下操作:
<script type="text/javascript">
window.onload = function() { init() };
var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE&output=html';
function init() {
Tabletop.init( { key: public_spreadsheet_url,
callback: showInfo,
simpleSheet: true } )
}
function showInfo(data, tabletop) {
alert("Successfully processed!")
console.log(data);
}
</script>
將內容導出到 excel 並將其導入 SQL 數據庫。
你可以用任何語言來做。 以 PHP 為例。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.