JS实现文件另存为

JS实现文件另存为

//下载平面图

function downPlan() {

    
    var oPop = window.open(src, "", "width=1,   height=1,   top=5000,   left=5000");
  
    for (; oPop.document.readyState != "complete"; ) {

        if (oPop.document.readyState == "complete")

            break;

    }

    oPop.document.execCommand("SaveAs");  

    oPop.close();   

}

 

posted @ 2016-08-05 11:22  飘....  阅读(15902)  评论(1编辑  收藏  举报