js 判断某字符串中是否存在一段字符串var settime="4:00"字符串settimevar i=settime.indexOf(':')如果settime包含":" 则 i 返回":2023-04-27JavaScript240