编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
jQuery API 开发手册

返回值:Array<Element(s)>:empty

V1.0概述

匹配所有不包含子元素或者文本的空元素

示例

描述:

查找所有不包含子元素或者文本的空元素

HTML 代码:
<table>
  <tr><td>Value 1</td><td></td></tr>
  <tr><td>Value 2</td><td></td></tr>
</table>
jQuery 代码:
$("td:empty")
结果:
[ <td></td>, <td></td> ]
相关文章
jquery easyui easyui更新说明jquery easyui cell editing in datagrid 单元格编辑表格 jquery easyui menu 菜单 jquery easyui timespinner 时间微调 addclass class|fn jquery attribute$=value jquerycallbacks.empty jquerycallbacks.has callback jquerycontext jquerydeferred.resolve args jqueryempty jquery empty jquery eq index jqueryevent.stoppropagation jqueryfocusin data fn jqueryjquery cal.empty jquery empty jquery emptyphp map returns whether the map is emptyphp spldoublylinkedlist checks whether the doubly linked list is empty
关注编程学问公众号
编程学问网 湘ICP备20001732号