我要做的是设置它,以便在单击链接时触发警报。是否可以定义首先触发哪个警报?
$("#container").delegate("a.link", "click", function(){
alert("This was message #1");
});
$("#container").delegate("a.link", "click", function(){
alert("This was message #2");
});