Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将空格字符插入到 DOM 元素的 innerHTML 中,但空格字符必须以 Unicode 语法声明。
例如,像这样的东西:...innerHTML += '\u83838383';
...innerHTML += '\u83838383'
我不太确定您希望使用什么字符8383- 更不用说83838383,但对于我熟悉的任何编码,它似乎都不是空格字符。您是否偶然寻找:
8383
83838383
\u0020
 
\u2002
 
\u2003