|
$(function () { loadmaterial(1) })
var _searchmaterial = { 'category': 'materialcontrol', 'sortName': '', 'sortOrder': 'DESC', 'loading': 0, 'pageindex': 1, 'pagesize': 100, 'ItemId': getQueryStringByName('ItemId'), r: Math.random() };
})(window);
function getQueryStringByName(name) { var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i")); if (result == null || result.length < 1) { return "" }; return result[1] }
function downloadmaterial(id, name) {
var root = '/down/'; if (root.substr(root.length - 1) != "/") root += "/";
var form = $('<form name=\"download\" method=\"post\" action=\"' + root + 'download.aspx?category=material&ItemId=' + getQueryStringByName('itemid') + '&fid=' + id + '&filename=' + name + '\"></form>');
$('body').append(form);
form.submit().remove();
}
-------------------------------------------------
Fiddler 可以抓到真实的下载地址,但是下载的文件数量和文件名都是随机的。
求教 火车头采集器里应该怎么设置?
|
|