Pre-loaded sounds being unloaded?
问题 So, I have the following test code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test</title> </head> <body> <button onclick="play()">Play</button> <script> var sounds = new Array(); preloadSnd = function(){ var snds = new Array(); for(i = 0; i < preloadSnd.arguments.length; i++){ snds[i] = new Audio(); snds[i].src = preloadSnd.arguments[i]; } sounds.push(snds); } preloadSnd( "test1.mp3", "test2.mp3", "test3.mp3", "test4.mp3", "test5.mp3", "test6.mp3", "test7.mp3",