如果想讓網(wǎng)頁中的helloworld中間有空格,怎么編代碼?
<script type="text/javascript">
document.write("hello");
document.write("world");
</script>
以上代碼網(wǎng)頁中顯示結(jié)果是:helloworld 中間無空格,如果想讓網(wǎng)頁中的helloworld中間有空格,怎么編代碼?
<script type="text/javascript">
document.write("hello");
document.write("world");
</script>
以上代碼網(wǎng)頁中顯示結(jié)果是:helloworld 中間無空格,如果想讓網(wǎng)頁中的helloworld中間有空格,怎么編代碼?
2018-05-26
舉報(bào)
2018-10-04
上面一堆廢話,你直接在第一句結(jié)尾或第二句開頭打上個(gè)空格就行了,比如hello五個(gè)字母敲完,再按一下空格
2018-10-03
2018-09-12
直接打空格,或者加 ,“hello空格” “hello ”
2018-06-13
document.write('i love ')
2018-05-31
docuemnt.write('hello ')第一個(gè)輸出的hello后面加一個(gè)空格即可
2018-05-31
document.write('i love')輸入的時(shí)候加一個(gè)空格即可
2018-05-26
2018-05-26
document.write( )
2018-05-26
你可以把helloworld放到一個(gè)document里,document里的文本是會(huì)完全保留顯示出來的