2292264703
2017-11-16 11:23
find('p:last')是什么意思呀?
class为aaron1的标签下的最后一个p标签
$(".aaron1").mousemove(function(e) {
$(this).find('p:last').html('移动的X位置:' + e.pageX)
在class为“。Aaron1”里找到最后一个p进行相应操作
$(this).find('p:last').html('数据:' + e.data)
this--->在当前元素下-find【寻找后代】--p:last【最后一个p元素】--html()【插入指定字符和变量】
find('p:last').html('数据:' + e.data)给最后一个p元素输入html元素
找到最后一个P?
jQuery基础(三)—事件篇
89989 学习 · 625 问题
相似问题