hlzyWeb/Admin/zbGoods/import.yfx.helper.js
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var tbTypes;
var txtPTXml, txtProductTypeXml;
var infoZone;
var chkFlag;
var ptRow;
var attributesDoc = null, valuesDoc = null;
$(document).ready(function () {
tbTypes = $("#tbTypes");
infoZone = $("#infoZone");
txtPTXml = $("#ctl00_ContentPlaceHolder1_txtPTXml");
chkFlag = $("#ctl00_ContentPlaceHolder1_chkFlag");
txtProductTypeXml = $("#ctl00_ContentPlaceHolder1_txtProductTypeXml");
ptRow = $("#ptRow");
init();
$("#tTypes").treeTable({
initialState: "expanded"
});
});
function init() {
if ($(chkFlag).attr("checked") == "checked") {
processTypes();
$(infoZone).show();
}
else {
$(tbTypes).empty();
$(infoZone).hide();
}
}
function processTypes() {
var doc;
if (/msie/.test(navigator.userAgent.toLowerCase())) {
doc = new ActiveXObject("Microsoft.XMLDOM");
doc.async = false;
doc.loadXML(txtPTXml.val());
}
else {
doc = new DOMParser().parseFromString(txtPTXml.val(), "text/xml");
}
var typeList = $(doc).find("indexes>types>type");
if (typeList.length == 0) {
$(ptRow).hide();
return;
}
$.each(typeList, function() {
var typeId = $(this).find("typeId").text();
var typeName = $(this).find("typeName").text();
var typeRowId = "t-" + typeId;
var typeRow = $(String.format("<tr id=\"{0}\"><td><strong>{1}</strong><\/td><td><\/td><\/tr>", typeRowId, typeName));
var typeSelector = createTypeSelector(typeId, typeName);
var selectedTypeId = fillTypeSelector(typeName, typeSelector);
后面还有 306 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
