What is the unicode character for the close symbol used by Twitter bootstrap?

后端 未结 7 1673
走了就别回头了
走了就别回头了 2021-01-29 23:17

Just curious, because I just realized it wasn\'t an actual \"x\" (annoying how long that took to figure out).

7条回答
  •  故里飘歌
    2021-01-30 00:04

    Instead of giving you fish I will give you dynamite. When working online if you need to figure out what Unicode specific character is you can use following javascript (you might also need to add .val() or .text() or [0] after selector dependent on situation):

    $('yourTextselector').charCodeAt(0).toString(16) // charCodeAt is the position of character in text you selected.
    

    Example:

    "ก้้้้้้้้้้้้้้้้้้้้".charCodeAt(2).toString(16)
    

    returns "e49"

    which means that it's \u0e49 since leading zeroes get 'swallowed'.

    This should help you identify other characters that look similar but are in fact different

    Hope this saves you some time.

提交回复
热议问题