js中查找一个字符是否存在。时间:2023-03-09 15:06:34 <script> var a = 'd'; var re = a.indexOf('d'); if(re === ){ alert('存在'); } else { alert('不存在'); } </script>