Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将以下语句转换为 JavaScript?
Set oTextRange = frmSearch.OrderNumList.createTextRange() lFound = oTextRange.FindText(aOrderNumList(nI))
lFound应该是一个布尔值。
lFound
var lFound = oTextRange.indexOf(aOrderNumList(nI))!=-1
看一下String.indexOf()
String.indexOf()
SO 不是代码示例站点,但我们可以帮助您朝着正确的方向前进。