📜  javascript 子字符串最后一个字符 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:04:28.128000             🧑  作者: Mango
代码示例5
// Get last n characters from string
var name = 'Shareek';
var new_str = name.substr(-5); // new_str = 'areek'