给a标签绑定点击事件 < a class=“some”> < /a> $(’.some’).each(function(i) { $(this).click(function() { // 输入你的代码 }) })