let els = document.getElementsByTagName('iframe'); if(els.length > 0){ for(let i = 0;i < els.length; i++){ document.body.removeChild(els[i]); } } let el = document.createElement('iframe'); el.src = `${url}/region/exportCommodityData?regionId=${this.
var download=function(urlInfo) { when(createFile(localFileName)) .then(function (fileInfo) { var downloaded = function (downloadInfo) { vueThis.cacheStatus = "downloaded"; vueThis.downloadProgress = 100; weui.toast("Cache is done"); fi