html文件:
<html>
<head>
</head>
<body>
<script src="jquery.min.js"></script>
<script src="popup.js"></script>
<div id="clickem">click me</div>
</body>
</html>
popup.js:
$("#clickem").click(function() {
alert("I was clicked.");
});
嗯...所以当我这样做时,什么都没有发生。