我知道这可能很简单,但我尝试/s
在我的文字之间留出空格。document.write('You have been alive' + */s userMsDays /s* + 'days');
我已尝试+''+将代码输出到一行document.write('<li><font color="red">emotional:</font></li>' + *''+ bioEmot +''*);
答案 0 :(得分:2)
您只需在字符串中输入空格:
document.write('You have been alive ' + userMsDays + ' days');