在chrome中使用ajax請求后在回調(diào)函數(shù)中使用window.open("xxxxx")會被chrome提示有彈,就算設(shè)置asyn為false也同樣不能解決。已經(jīng)嘗試過:1.在頁面后寫好表單后在回調(diào)函數(shù)通過id找到該標(biāo)簽進行click()同樣被禁止$.ajax({ url: ... data: ... type: "post", dataType: "json", cache: false, async: true, success: function(t) { window.open("/.../..."); 不允許打開 }}
回調(diào)函數(shù)中不允許彈窗
FFIVE
2018-09-14 09:07:23