How to create a string or char from an ASCII value in JavaScript?

前端 未结 3 1343
春和景丽
春和景丽 2020-12-05 16:45

In JavaScript, how to get a string representation of an ASCII value, e.g. how to turn 65 into A?

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 17:22

    The method you're looking for is String.fromCharCode (http://www.w3schools.com/jsref/jsref_fromCharCode.asp).

提交回复
热议问题