夜的第七章

WEB开发个人博客。

« JS插入FreeTextBox的代码 变形金刚广州版 »

一段有疑问的代码,以后研究

/*
function AddUpload(v)
{

var p1 = document.getElementById("p1");
var file = document.createElement("input");
file.type="text";
file.onclick=new Function("OpenFile(this);Cal()");
file.className = "InputSolid";
file.style.width = "270px";
file.runat = "server";
file.id = "file_"+n;
if(v != null)
file.value = v;

p1.appendChild(file);

p1.innerHTML += " ";

var btn = document.createElement("input");
btn.type = "button";
btn.className = "ButtonRed";
btn.id = "btn_"+n;
//alert(btn.id);
btn.value = "选择"+n;
btn.onclick = "BtnClick(this)";
//btn.onclick="alert('A')";
p1.appendChild(btn);
n++;

}
*/

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。



[2007 - 2011] © Leadnt.com