live已经停用,只能用ON
正确方式
live已经停用,只能用ON
正确方式
jQuery事件 -- live ---------- 给所有匹配元素附加一个事件处理函数,即使这个元素
.live(events, function) .on(eventType, selector, function) .live()函数在jquery 1.9的时候已被移除,jquery 1.9+ 需要...
jQuery的.live()和.die()
前阵子写代码的时候,遇到前面人留下的jquery . 一直不会jquery, 硬着头皮,上了. 发现里面有一个很有意思的 函数 live jquery的 live 这一函数让我初始觉得很神奇. 比如<div id="c"> <li>1</li> <li>2<
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M