简体   繁体   中英

JavaScript: Unicode space character

I want to insert the space character into the innerHTML of a DOM element, but the space character must be declare in Unicode syntax.

For example, something like this: ...innerHTML += '\莃8383' ;

I am not quite sure what character you are hoping to get with 8383 - not to mention 83838383, but it certainly doesn't seem to be the space character for any encodings I am familiar with. Are you by chance looking for:

  • ASCII Space =   = '\ '
  • En Space =   = '\ '
  • Em Space =   = '\ '

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM