JS代码:
!1 === b.cache && a.query.set("_ksTS", d.now() + "_" + d.guid()));
对于这行代码我的理解是生成一个时间戳并生成一个guid,但是这行代码在网页上最终出来的效果是:_ksTS: 1647352680089_1157;可是据我所知,guid出来的结果应该都是十几位的才对啊。
望各位师傅能不吝赐教。
PS:下面是完整代码:
KISSY.add("io/base", ["event/custom", "promise"], function(d, f) {
function i(b) {
var a = b.context;
delete b.context;
b = d.mix(d.clone(n), b, {
deep: !0
});
b.context = a || b;
var l, j = b.type, g = b.dataType, a = b.uri = m.resolve(b.url);
b.uri.setQuery("");
"crossDomain"in b || (b.crossDomain = !b.uri.isSameOriginAs(m));
j = b.type = j.toUpperCase();
b.hasContent = !e.test(j);
if (b.processData && (l = b.data) && "string" !== typeof l)
b.data = d.param(l, void 0, void 0, b.serializeArray);
g = b.dataType = d.trim(g || "*").split(c);
!("cache"in b) && d.inArray(g[0], ["script", "jsonp"]) && (b.cache = !1);
b.hasContent || (b.data && a.query.add(d.unparam(b.data)),
!1 === b.cache && a.query.set("_ksTS", d.now() + "_" + d.guid()));
return b
}