关于方法三的小小疑问,求解答
<h4>测试三</h4>
<div class="right">
<div class="aaron2">
<p>鼠标移动:不同函数传递数据</p>
<a>进入元素内部,mouseover事件触发次数:</a>
</div>
</div>
<br/>
<script type="text/javascript">
var n = 0;
//不同函数传递数据
function data(e) {
$(".right a").html('mouseover事件触发次数:' + (++n) + '<br/> 传入数据为 :'+ e.data)
}
function a() {
$(".right p:first").mouseover('data = 慕课网', data)
}
a();
</script>函数function data(e)以及函数function a()之间什么关系,谁先执行$(".right a")这代表在class=right下的a标签才能触发函数吗?