getElementsByClassName() returns an HTMLCollection not an Array. You have to convert it into a JavaScript array first :
確定! 回上一頁