根据以下案例即可名称。注意函数大小写
<script type="text/javascript"> var str="Hello world!" document.write(str.indexOf("Hello") + "<br />") document.write(str.indexOf("World") + "<br />") document.write(str.indexOf("world")) </script>
以上代码的输出:
0 -1 6
根据以下案例即可名称。注意函数大小写
<script type="text/javascript"> var str="Hello world!" document.write(str.indexOf("Hello") + "<br />") document.write(str.indexOf("World") + "<br />") document.write(str.indexOf("world")) </script>
以上代码的输出:
0 -1 6