JS中如何输出空格?
check
check 2016-12-21 09:34:50
0
3
916
check
check

reply all(3)
数据分析师

How to output spaces in JS? -PHP Chinese website Q&A-How to output spaces in JS? -PHP Chinese website Q&A

Please watch and learn.

阿神

  document.write("<span style='white-space:pre;'>"+"  1        2    3    "+"</span>");
 结果:  1       2     3 

迷茫

使用输出html标签&nbsp;来解决

 document.write("&nbsp;&nbsp;"+"1"+"&nbsp;&nbsp;&nbsp;&nbsp;"+"23");
 结果:  1    23


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template