- Invisible red dot UNICODE character
- Unicode Character ‘ZERO WIDTH SPACE’ (U+200B)
出现一个零宽度空字符 Bug,运气好,想着是在 Chrome Console 中打印一下,直接发现了,不然根本发现不了这个问题。
Number.isSafeInteger(1);
Unicode Character ‘ZERO WIDTH SPACE’ (U+200B):
| Unicode Data | |
|---|---|
| Name | ZERO WIDTH SPACE |
| Block | General Punctuation |
| Category | [Other, Format Cf] |
| Combine | 0 |
| BIDI | Boundary Neutral [BN] |
| Mirror | N |
| Index entries | ZERO WIDTH SPACE zwsp SPACE, ZERO WIDTH |
| Comments | commonly abbreviated ZWSP this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification |
| Version | Unicode 1.1.0 (June, 1993) |
| Encodings | |
|---|---|
| HTML Entity (decimal) | |
| HTML Entity (hex) | |
| How to type in Microsoft Windows | Alt **+**200B |
| UTF-8 (hex) | 0xE2 0x80 0x8B (e2808b) |
| UTF-8 (binary) | 11100010:10000000:10001011 |
| UTF-16 (hex) | 0x200B (200b) |
| UTF-16 (decimal) | 8,203 |
| UTF-32 (hex) | 0x0000200B (200b) |
| UTF-32 (decimal) | 8,203 |
| C/C++/Java source code | “\u200B” |
| Python source code | u"\u200B" |
| More… |