jquery validation
摘要: 1<%@page contentType="text/html; charset=GBK"%> 2<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3<%@ taglib uri="http:/... 閱讀全文
摘要: 1<%@page contentType="text/html; charset=GBK"%> 2<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3<%@ taglib uri="http:/... 閱讀全文
html
:has
1
<div style="width:100%;height:100%;border-style:solid;border:2px;">
2 <div style="width:40px;height:30px;border-style:solid;border:2px;">
3 <p>Hello</p>
4 </div>
5
6
7
8</div>
$("div:has(p)")
選中的是最外層的div
(?=xxx) |
正向預(yù)搜索(向右) |
正向預(yù)搜索,判斷當(dāng)前位置右側(cè)是否能匹配指定表達(dá)式 |
(?!xxx) |
正向預(yù)搜索否定,判斷當(dāng)前位置右側(cè)是否不能夠匹配指定表達(dá)式 |
|
(?<=xxx) |
反向預(yù)搜索(向左) |
反向預(yù)搜索,判斷當(dāng)前位置左側(cè)是否能夠匹配指定表達(dá)式 |
(?<!xxx) |
反向預(yù)搜索否定,判斷當(dāng)前位置左側(cè)是否不能夠匹配指定表達(dá)式 |