setAttribute ("class", value)中class是指改变"class"这个属性,所以要带引号。 ... setAttribute("onclick", "javascript:alert('This is a test!
確定! 回上一頁