开发者

JavaScript: Unicode space character

开发者 https://www.devze.com 2022-12-19 10:49 出处:网络
I want to insert the space character into the innerHTML of a DOM element, but the space character must be declare in Unicode syntax.

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开发者_StackOverflow社区 += '\u83838383';


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 =   = \u0020
  • En Space =   = \u2002
  • Em Space =   = \u2003
0

精彩评论

暂无评论...
验证码 换一张
取 消