开发者

How I'll convert "ı" character to "I" which is within a word with JavaScript?

开发者 https://www.devze.com 2023-03-28 11:09 出处:网络
Like aıdK -> aIdK开发者_JS百科 Note: http://www.marathon-studios.com/unicode/U0131/Latin_Small_Letter_Dotless_Ivar convertedString = string.replace(/\\u0131/g,\'I\');

Like aıdK -> aIdK开发者_JS百科

Note: http://www.marathon-studios.com/unicode/U0131/Latin_Small_Letter_Dotless_I


var convertedString = string.replace(/\u0131/g,'I');


var mystring = "aıdK";

newstring = mystring.replace("ı","l"); //aldK

0

精彩评论

暂无评论...
验证码 换一张
取 消