📜  将重音转换为 ascii js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.758000             🧑  作者: Mango

代码示例1
var originalText = "éàçèñ"
var result = originalText.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
console.log(result)