0
一直試圖讓下面的函數工作:類型轉換的公式爲輸出 - 谷歌應用程序腳本
function getRsiData(symbol) {
var queryString = Math.random();
var cellFunction = '=INDEX(IMPORTHTML("http://www.stockta.com/cgi-bin/analysis.pl?symb="'+ symbol +'"&mode=table&table=rsi&num1=1","table",7),1,2)';
return cellFunction;
}
基本上,我想回cellFunction讓我的電子表格會自動顯示功能的輸出。目前它正在顯示文字。輸入它的正確方法是什麼?
是否使用工作[鏈接到Google Apps腳本文檔】(https://developers.google.com/apps-script/reference/spreadsheet/range#setformulaformula) –