honey.def(function(t) {
function s() {
return time = String(Date.parse(new Date)).substring(0, 10),
rd = String(Math.random()),
nonce = String(rd + time + time + rd).substring(0, 32),
time + nonce
}
直接运行提示,honey未定义
生成随机数字吧
这个代码段抽离了所在的文件肯定会出现"honey is not defined"的情况,且无论honey是什么,关键点在于s()函数。这个函数是结合了当前10位时间戳以及随机数所拼接产生的随机数字序列。