a连接下载

 let url = get(data,'url');
                                            let a = document.createElement("a");
                                            a.href = url;
                                            document.body.append(a);
                                            a.click();
                                            a.remove();

你可能感兴趣的:(前端,javascript,html)