首页javascriptanchorjQuery HTML Element - 如何静音音频...

jQuery HTML Element - 如何静音音频...

我们想知道如何静音音频。...

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $("a").click(function() {
        return false;
    });
    $(".toolbar a").click(function() {
        console.log("Do something");
    });
});
</script>
</head>
<body>
  <a href="http://www.w3cschool.cn">Test</a>
  <div class="toolbar">
    <a href="#test2">Test 2</a>
  </div>
</body>
</html>