翻译带码adpicSrc = $.getRootUrl() + "/sysfiles/attachment/book_publish_pic/" var _sParam = "<item>" + sdpuser_m + "</item>"; var _reciveXml = $.runCusAjax("book_publish_my", _sParam); var tmDoc = $.loadXmlString(_reciveXml); if (tmDoc && tmDoc.documentElement.childNodes.length > 0) { for (var rr = 0; rr < tmDoc.documentElement.childNodes.length; rr++) { var recRowNode = tmDoc.documentElement.childNodes[rr]; switch (recRowNode.nodeName.toLowerCase()) { case "row": for (var cc = 0; cc < recRowNode.childNodes.length; cc++) { var curNode = recRowNode.childNodes[cc]; //当前节点 var curText = $(curNode).text(); switch (curNode.nodeName.toLowerCase()) { case "pic_logo": urlsrc = adpicSrc + curText; $.sdp.id("pic_logo").setSrc(urlsrc); break; case "usercompany": $.sdp.id("lbl_usercompany").setText(curText); break; } } break; } } }
时间: 2023-02-28 14:01:29 浏览: 108
带语音的翻译源码2.2.z
这段代码的意思是:定义一个变量"adpicSrc",通过$.getRootUrl()和"/sysfiles/attachment/book_publish_pic/"的拼接得到的值。然后定义变量"_sParam",并将"<item>"和"sdpuser_m"拼接后赋值给它。接着定义变量"_reciveXml",并通过$.runCusAjax("book_publish_my", _sParam)方法得到的返回值赋值给它。最后,定义变量"tmDoc",并通过$.loadXmlString(_reciveXml)方法得到的返回值赋值给它。最后,判断"tmDoc"是否为真。
阅读全文