沒反應????
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>string對象 </title>
</head>
<body>
??? <script type="text/javascript">
??????? var mystr="Hello World!";
??????? document.write("mystr");
??????? document.write(mystr.indexOf("o")+1);
??????? document.write(mystr.indexOf("o",mystr.indexOf("o")+1);
??? </script>
</body>
</html>
2020-03-31
好吧,document.write(mystr.indexOf("o",mystr.indexOf("o")+1));括號少寫了一個。。。。