我有一个 html 代码
<html>
<head>
<script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type = "text/javascript" src = "http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css" />
</head>
<body>
<div id="bag">CLICK ME</div>
</body>
</html>
<script type="text/javascript">
$("#bag").click(function(){
$.colorbox({html:function(){alert("HELLO")}});
});
</script>
当我点击 CLICK ME 时,弹出警报会出现 2 次,而不是应该只出现一次。请告诉我