js模擬a標籤點擊

js模擬a標籤點擊 let url = '';//點擊觸發的URL //建立a標籤 function createAEle () { let a = document.createElement('a')//建立一個a標籤 a.setAttribute("href", url);//添加URL a.setAttribute('target', "_blank")//設置ta
相關文章
相關標籤/搜索