在google應用腳本中,static不是一個關鍵詞,如何在google應用腳本中使用這個方法?
class Test{
constructor(a){
this.a = a;
}
static trythis(b,c){
return b*c;
}
}
function test123() {
let test = new Test(123)
Logger.log(test)
let test2 = trythis( 2, 3)
Logger.log(test2)
}
ReferenceError: trythis is not defined
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/319348.html
標籤:
上一篇:無法從空值讀取作業表范圍

