最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

正在回答

5 回答

你的第二個(gè)mystr寫(xiě)錯(cuò)了,第一個(gè)少了個(gè)括號(hào),下面是正確的

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>string對(duì)象</title>

<script type="text/javascript">

var mystr="Hello World!"

document.write(mystr.substring(mystr.indexOf("W"))+"<br>");

document.write(

? ? mystr.substring(

? ? ? ? 0,mystr.indexOf(

? ? ? ? ? ? "d")));

</script>

</head>

<body>

</body>

</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

你的第八行'W'后少了一個(gè)括號(hào)?!?/p>

0 回復(fù) 有任何疑惑可以回復(fù)我~

你第八行的括號(hào)括錯(cuò)位置了不應(yīng)該把換行也括進(jìn)來(lái),第九行的變量值又寫(xiě)錯(cuò)了。。。

0 回復(fù) 有任何疑惑可以回復(fù)我~
<!DOCTYPE?HTML>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8">
<title>string對(duì)象</title>
<script?type="text/javascript">
var?mystr="Hello?World!"
document.write(mystr.substring(mystr.indexOf("W"))+?"<br?/>");
document.write(mystr.substring(0,mystr.indexOf("?")));
</script>
</head>
<body>
</body>
</html>

這樣是可以輸出正確結(jié)果的。已測(cè)試

0 回復(fù) 有任何疑惑可以回復(fù)我~

http://img1.sycdn.imooc.com//583fed000001ec9d07770345.jpg

結(jié)果是這樣的嗎?

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕粉4370907 提問(wèn)者

誰(shuí)能告訴我的結(jié)果為什么是這樣?
2016-12-01 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么顯示不了,各位大神

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)