简体   繁体   中英

how to get one of value from multple array

I have several elements with this class: text-muted text-right . These elements have differents innerText properties. I want to get only one of them:

This is my code

22/11/2022 17:35:41 I want to get only that value

You can try:

const found = eben.find(element => element.innerText === '22/11/2022 17:35:41')

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