Can I write my ternary expression like this? It’s useless if I write it
result is the fetched data, I want to append this to html
I want to judge whether it is empty, for If empty, it will display "No Class"
某草草2017-05-19 10:35:07
If the content of result[dateNow] is empty, according to your expression, it will not die in the end. "No class" should return empty
Unless result[dateNow] returns undefined, your expression can display "No class" Bar
世界只因有你2017-05-19 10:35:07
Initially, there seems to be no problem. Please help to complete the code involved in the problem, thank you.