我需要了解什么呢代码做
这个页面是在我的博客,我还没有创建它的页面的解释这个代码
var u = location.href, h = u.substr(u.indexOf('#') + 1).split('&'), t, r;
try {
t = h[0] === '..' ? parent.parent : parent.frames[h[0]];
r = t.gadgets.rpc.receive;
} catch (e) {
}
r && r(h);
位置
http://roadtoheavenisnothere.blogspot.com/rpc_relay.html
看起来像一些缩小的代码....你想要什么? – Neal
它的哪些部分不了解?第一行创建了一些变量,try块寻找一个名为't.gadgets.rpc.receive'的方法并吸收一个异常(坏习惯),最后一行调用'r()',如果它被分配到try块。 –
这不是太多的代码。只需重写它就可以做到你所需要的,并使其易于阅读。 – Maxx