【发布时间】:2020-02-05 03:11:11
【问题描述】:
let theString = 'include all the information someone would need to answer your question'
let theString2 = 'include some the information someone would need to answer your question'
let theString3 = 'the information someone would need to answer your question'
let theArray = ['all', 'some', 'x', 'y', 'etc' ]
theString 为真,因为存在“全部”, theString2 为真,因为有“一些”, theString3 false 因为没有“全部”或“某些”
【问题讨论】:
-
但是在
theString3中有是some-- 为什么它会返回false? -
您能否提供更多关于您如何定义“包含”的详细信息?正如上面的评论所提到的,在“某人”中有技术上的“一些”
标签: javascript arrays logic