本文共 1061 字,大约阅读时间需要 3 分钟。
jQuery ?????? JavaScript ?????? XPath ?????? XML ???????????XPath ?????????????????? DOM ????????
? jQuery ??XPath ????????????????????????????
????????????????
$("[attribute='value']")  ????? id ???? "testDiv" ????
$("[id='testDiv']")  ??????????????????
$("[attribute*='value']")  ????? title ?????? "Home" ????
$("[title*='Home']")  ?????????????????
$("[attribute='value']")  ????? id ??????? "testDiv" ????
$("[id='testDiv']")  ???????????????
$("[attribute!='value']")  ????? id ????? "testDiv" ????
$("[id!='testDiv']")  ??????????????????
$("[attribute^='value']")  ????? id ???? "test" ??????
$("[id^='test']")  ???????????????????????
$("[attribute1='value1'][attribute2='value2']")  ????? id="testDiv" ? class="card" ????
$("[id='testDiv'][class='card']")  ???? HTML ???
Title testTexttestText2testText3
???? jQuery ???
$testDiv = $('div[id*="testDiv"]');  ?????? id ???? "testDiv" ????
????????????????????????????? web ????????
转载地址:http://sqzj.baihongyu.com/