c#(SVG)无刷新,动态执行Javascript处理SVG对象:包含SVG的 页面.cs源码 (二)

来源:互联网 发布:行业域名的重要性 编辑:程序博客网 时间:2024/05/21 10:56

protected void Page_Load(object sender, EventArgs e)
{
        if (!IsPostBack ) getDocSVG();

private void getDocSVG()
{
            this.thesvgdoc.Attributes.Add("src", "testSVG.SVG");
            Response.Write("<script language='javascript'>");
            Response.Write("setInterval('refreshSVG()' , 5000);"); //动态调用aspx页面上的函数
            Response.Write("</script>");
}