下面的语句可以实现复制表单的功能
var
oForm
=
window.opener.document.getElementsByName(
"
WebMail
"
)[
0
].cloneNode(
true
);
// document.getElementById("cont").innerHTML = oForm.innerHTML;
document.getElementById( " showText " ).innerText = oForm.innerHTML;
// document.getElementById("cont").innerHTML = oForm.innerHTML;
document.getElementById( " showText " ).innerText = oForm.innerHTML;
public
string
exceptRepeatString(
string
oString,
char
spliter )
{
oString = replaceStr( oString );
string [] oStrAry = oString.Split( spliter );
string tStr = "" ;
for ( int i = 0 ; i < oStrAry.Length; i ++ )
{
// if ( ( i + 1 ) < oStrAry.Length && Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
if ( Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
{
tStr += oStrAry[i] + spliter.ToString();
}
}
return tStr;
}
{
oString = replaceStr( oString );
string [] oStrAry = oString.Split( spliter );
string tStr = "" ;
for ( int i = 0 ; i < oStrAry.Length; i ++ )
{
// if ( ( i + 1 ) < oStrAry.Length && Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
if ( Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
{
tStr += oStrAry[i] + spliter.ToString();
}
}
return tStr;
}