倒~~
有必要这样吗?~
在文件中htmljs.aspx 用function:
function view(type){
if( type=1) {
javastr = "1aa";
document.write(javastr);
}
if(ytpe=2){
javastr = "2bb"
document.write(javastr)
}......
有必要这样吗?~
在文件中htmljs.aspx 用function:
function view(type){
if( type=1) {
javastr = "1aa";
document.write(javastr);
}
if(ytpe=2){
javastr = "2bb"
document.write(javastr)
}......
if(Page.Request["type"] == "1")
{
Response.Write("javastr = \"1aa\"");
Response.Write("document.write(javastr)");
}
else if(Page.Request["type"] == "2")
{
Response.Write("javastr = \"2bb\"");
Response.Write("document.write(javastr)");
}