简体   繁体   中英

What is a Descendant operator? Is it in javascript Or in any other language?

I came across a question stating: Which on of the following is a Descendant operator:
A) ..
B) ...
C) &
D) *

WHICH IS IT? AND PLEASE EXPLAIN WHY OR REFER ANY ARTICLE OR LINK

The answer is A.

The .. operator is the descendant operator; you can use it in place of the normal . member-access operator :

var names = pt..name;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM