7
$(document).ready(function() {
function GetDeals() {
alert($(this).attr("id"));
}
$('.filterResult').live("click", function(event) {
GetDeals();
});
});
我需要在函数GetDeals()
中作为参数传递什么,以便我可以使用$(this)
来操作?
在此先感谢!
谢谢,两种解决方案工作:) – 2010-06-04 08:19:10