【发布时间】:2011-01-26 18:47:03
【问题描述】:
可以将悬停和点击功能合二为一,例如:
点击:
$('#target').click(function() {
// common operation
});
悬停:
$('#target').hover(function () {
// common operation
});
它们可以组合成一个功能吗?
谢谢!
【问题讨论】:
标签: javascript jquery function click hover