如下所示:
复制代码代码如下所示:
*

获得指定长度的子字符串的右边,

从字符串对象。

* /

string.prototype.right =功能(length_)

{

无功_from = this.length - length_;

如果(_from<0)_from = 0;

返回this.substring(this.length - length_,这个长度);

};