MongoDB Shell:
> db.users.find({}, {email:1}).forEach(function(u) {print(u.email)})
MongoDB Shell:
> db.users.find({}, {email:1}).forEach(function(u) {print(u.email)})
<Bookstore>
<Book>
<ISBN>9781401309657</ISBN>
<Name>The Last Letcture</Name>
<Author>Randy Pausch</Author>
</Book>
</Bookstore>
Code:
Result:
[{'ISBN',"9781401309657"},
{'Name',"The Last Letcture"},
{'Author',"Randy Pausch"}]
repeat_words('a', 4); // output: 'aaaa'Sometimes we will use
$('div:visible') // Does not use querySelectorAll()
to select something is visible, but it dose not utilize querySelectorAll()
so we can use
$('div').filter(':visible') // Uses it
to get high performance
See Also
http://tutorialzine.com/2011/06/15-powerful-jquery-tips-and-tricks-for-developers/