在js中并没有发现这个方法的定义, 请教大家这个方法是怎么来的? 并解释下含义, 谢!代码:
https://addons.mozilla.org/ZH-cn/seamonkey/files/browse/188894/file/components/scripts/lib-rsa.js#top
https://addons.mozilla.org/ZH-cn/seamonkey/files/browse/188894/file/components/scripts/lib-rsa.js#top
function BigInteger(a, b, c) {
if (a != null)
if ("number" == typeof a)
this.fromNumber(a, b, c);
else if (b == null && "string" != typeof a)
this.fromString(a, 256);
else
this.fromString(a, b);
}
BigInteger.prototype.fromString = bnpFromString;以上两个方法都在代码内有定义, 因此没有疑问,但fromNumber却是无中生有,有点恐怖。