HTML // jQuery - 重新加载10秒后静音所有音频声音

时间:2015-07-04 17:28:37

标签: javascript jquery html audio

如果在重新加载前10个网站后再取消静音,我怎样才能将网站中的所有音频声音静音?

<audio id="musWrited" autoplay>
                <source src="sound/soundl.mp3" type="audio/mp3" />
                    //
                </audio>

jQuery有选项吗?

1 个答案:

答案 0 :(得分:1)

类似的东西:

in html:

(?:([^: ]+):)?  // don't capture the colon, capture the part before the colon
([^ ]+ [^ ]+)   // capture the two groups that may or may not be preceded by the colon
(?: |$)         // end at either a space or the end of the line/string

然后在js:

<audio muted ....></audio>