方案1:Response.Write("<script>alert('dsafasdf');</script>");
Response.Redirect("webform2.aspx");结果:直接跳转,alert没反映方案2:Response.Write("<script>alert('dsafasdf');</script>");
Response.Write("<script>window.location.href='webform2.aspx'</script>");结果:alert出现,关闭以后成功跳转
问题:为什么方案1中的alert不执行???