How would I print the 'title' and 'firstname' values from this variable into a div?
var relationshipList = [
{ name: 'William Cotterll', firstname: 'William', title: 'EVP Solutions' },
{ name: 'Edwin Van Der Saar', firstname: 'Edwin', title: 'Security Specialist' },
{ name: 'Kelly Woodson', firstname: 'Kelly', title: 'Production Manager'},
];
EDIT:
If I wanted to print out the 'firstname' value, when I already knew the 'title' value, how could I achieve that?
For example, I only want to print out firstname when the title == 'EVP Solutions'.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…