这是促销页面:http://www.apple.com/itunes/50-billion-app-countdown/
并且它链接了一个js:http://www.apple.com.cn/v/itunes/50-billion-app-countdown/a/scripts/counter.js
AC.onDOMReady(function() {
var e = "j", t = new Counter({
container: AC.Element.selectAll(".counter")[0],
dataURL: "/itunes/store/counters/il6ark7ec." + e + "s",
staticImagePath: "http://images.apple.com/itunes/shared/counter/images/counter_noscript.png",
targetCount: 50000000000,
stopAtTargetCount: true
});
});
因此,拼接字符串
var e="j"
"/itunes/store/counters/il6ark7ec." + e + "s"
至
http://www.apple.com.cn/itunes/store/counters/il6ark7ec.js
它有用吗?或者只是为了好玩..?
发布于 2013-05-04 16:08:05
这可能是为了让想要抓取文件和其中链接的所有文件的人变得更加困难。一种简单的方法是查看html源代码,然后使用css
或js
(可能使用正则表达式)下载其中引用的任何其他文件。此字符串连接将导致在此特定文件上失败。
https://stackoverflow.com/questions/16372026
复制相似问题