JS 字符串中间加空格使用:\xa0(表示一个空格)
const fruits = '苹果\xa0\xa0\xa0\xa0香蕉\xa0\xa0\xa0\xa0梨\xa0\xa0\xa0\xa0橘子'
console.log(fruits)
html 代码加空格使用 (表示一个空格)
<p>世界这么大,我想 出去走走!</p>
JS 字符串中间加空格使用:\xa0(表示一个空格)
const fruits = '苹果\xa0\xa0\xa0\xa0香蕉\xa0\xa0\xa0\xa0梨\xa0\xa0\xa0\xa0橘子'
console.log(fruits)
html 代码加空格使用 (表示一个空格)
<p>世界这么大,我想 出去走走!</p>