-5
我想使用數組內的變量的值,像這樣。Javascript var inisde array
var advalue = Math.floor(Math.random * 6);
var ads = ["Hello", "World", "Randomword", "123", "1233", "0000"];
API.sendChat("Word: " + ads[advalue]);
當我運行它,我得到undefined
細後失蹤括號和問題出在哪裏? – panther
我返回一個未定義的。 – user2654319
'Math.random()'是一個函數,而不是一個屬性。 – deceze