1.javascript 中 if (window != top) top.location.href = location.href;的意思
如果当前窗口不是最上层窗口(比如是在Iframe中),那么就把自己变为最上层窗口。这可以防止别的网站把你自己的网站放在他的Iframe中,从而损害你的利益(因为会误导浏览者)。
2.将后台数据转换可读取数据类型
alert(JSON.stringify(data));