📌  相关文章
📜  javascript 字符串获取最后两个字符 - Javascript 代码示例

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

代码示例1
var member = "my name is Mate";

var last2 = member.slice(-2);

alert(last2); // "te"