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

前端 未结 3 1347
春和景丽
春和景丽 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:45

    A reference for those of us that don't like w3schools ;)

    Usage:

    var myAString = String.fromCharCode(65)

提交回复
热议问题