如何在动力学中将ascii字符可视化为“人类可读”?
var figure = new Kinetic.Text({
x: 75/2,
y: 75/2,
text: "♘",
fontSize: 30,
fontFamily: "Calibri",
textFill: "green",
align: "center",
verticalAlign: "middle"
});
答案 0 :(得分:0)
这与KineticJS无关。您正在询问如何获取包含HTML字符实体的字符串并解码实体。有关该问题的答案,请参阅Convert HTML Character Entities back to regular text using javascript。