在一個js檔案中如下定義了rsaFun方法,我怎麼在另一個js中引用rsaFun這個方法
define("kit/rsa", [], function (e, t, n) {
n.exports = {
rsaFun: function (e) {
var t = "ab86b6371b5318aaa1d3c9e612a9f1264f372323c8c0f19875b5fc3b3fd3afcc1e5bec527aa94bfa85bffc157e4245aebda05389a5357b75115ac94f074aefcd",
n = "10001",
a = Q.crypto.rsa.RSAUtils.getKeyPair(n, "", t),
i = Q.crypto.rsa.RSAUtils.encryptedString(a, encodeURIComponent(e)).replace(/\s/g, "-");
return i
}
});
在一個js檔案中如下定義了rsaFun方法,我怎麼在另一個js中引用rsaFun這個方法
define("kit/rsa", [], function (e, t, n) {
n.exports = {
rsaFun: function (e) {
var t = "ab86b6371b5318aaa1d3c9e612a9f1264f372323c8c0f19875b5fc3b3fd3afcc1e5bec527aa94bfa85bffc157e4245aebda05389a5357b75115ac94f074aefcd",
n = "10001",
a = Q.crypto.rsa.RSAUtils.getKeyPair(n, "", t),
i = Q.crypto.rsa.RSAUtils.encryptedString(a, encodeURIComponent(e)).replace(/\s/g, "-");
return i
}
}
});