Ϊ ""滻 if (document.getElementById('cph1_MultiDown_DownFileStr').value == " ") { document.getElementById('cph1_MultiDown_DownFileStr').value = ""; } if (document.getElementById('cph1_MultiDown_DownFileStr').value == "") { document.getElementById('downtitle').innerText = "ûκθ"; return; } elem = document.getElementById('downlist'); if (elem.style.display == 'none') { elem.style.display = ""; } var filelist = document.getElementById('cph1_MultiDown_DownFileStr').value; var arrmp = filelist.split("**"); for (tmparr = 0; tmparr < arrmp.length; tmparr++) { var arr1 = arrmp[tmparr].split("*"); if (arr1.length >= 3) { //debugger; var span = document.createElement('downspan'); span.id = '_attachmentdown' + i; span.innerHTML = arr1[1] + getFileSize(arr1[0]) + ' 
'; // span.innerHTML = arr1[1] + getFileSize(arr1[0]) + ' 
'; // span.innerHTML = arr1[1] + getFileSize(arr1[0]) + ' ' // span.innerHTML = span.innerHTML + '
'; //spantitleļڷϵ // span.title = arr1[2]; span.setAttribute("FileInfoString", arr1[0] + "*" + arr1[1] + "*" + arr1[2]); span.title = arr1[1]; // span.tagName = "123"; document.getElementById('downlist').appendChild(span); //ʼǴؿȡؿ //document.getElementById("cph1_MultiDown_DownFileStr").value = document.getElementById("cph1_MultiDown_DownFileStr").value + arr1[0] + "*" + arr1[1] + "*" + arr1[2]+"**"; } } } //ʽļС function getFileSize(sizenum) { if (sizenum < 1024) { sizenum = formatdec(sizenum, 0) + "ֽ"; } else if ((sizenum / 1024) < 1024) { sizenum = formatdec(sizenum / 1024, 0) + "KB"; } else if (((sizenum / 1024) > 1024) && ((sizenum / (1024 * 1024)) < 1024)) { sizenum = formatdec(sizenum / (1024 * 1024), 2) + "MB"; } else { sizenum = formatdec(sizenum / (1024 * 1024 * 1024), 2) + "GB"; } sizenum = " ( " + sizenum + " )"; return sizenum; } //numʾҪ,vʾҪСλ function formatdec(num, pos) { var strpos = Math.pow(10, pos); return Math.round(num * strpos) / strpos; } //-->
б

 

 

һƪһһ·
һƪ֣йǸɽʦγѧϰŵУι۽

 

Copyright ©2012 yizhou. All Rights Reserved ɶԪƶţ_Ԫţţ_ֿԪ Ȩ
ѧУַ:йĴʡɶиʢν32 : 610041 绰028-85137971 ţICP12019231

51019002001226

ɶиԪƶţ_Ԫţţ_ֿԪվ _Ԫƶţ_Ԫţţ_ֿԪ