Jquery选择器 - 多个类/嵌套级别?

时间:2016-02-28 14:24:16

标签: jquery selector

如何在JQuery中选择以下内容?

<div class='A'>
  <span class='B C'>
     <p class='C D E'>
     </p>
  </span>
</div>

以下内容尚无效。

$('div.A > span.B.C > p.C.D.E')

1 个答案:

答案 0 :(得分:0)

你可以.find()

http://ec2-54-213-242-40.us-west-2.compute.amazonaws.com/BlueDrive/bluedrive/drive/public/

  

public class GeofenceTransitionsIntentService extends IntentService { ... @Override protected void onHandleIntent(Intent intent) { ... if (geofenceTransition == Geofence.GEOFENCE_TRANSITION_ENTER) { //Create WiFi scan receiver WiFiScanReceiver wifiScan = new WiFiScanReceiver(); registerReceiver(wifiScan, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); //Scan WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE); Boolean scanStarted = wm.startScan(); } } :获取当前匹配元素集中每个元素的后代,由选择器,jQuery对象或元素过滤。