v1 #4
共有 1 個檔案被更改,包括 1 行新增 和 0 行删除
|
@ -2,6 +2,7 @@ class Sound{
|
||||||
constructor(url){
|
constructor(url){
|
||||||
this.sound = new Audio(url);
|
this.sound = new Audio(url);
|
||||||
this.sound.type = "audio/mp3";
|
this.sound.type = "audio/mp3";
|
||||||
|
this.sound.volume = 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
play(){
|
play(){
|
||||||
|
|
載入中…
新增問題並參考