當(dāng)頁(yè)面新窗口打開時(shí)就不會(huì)出現(xiàn)瀏覽器左右滑動(dòng)的問(wèn)題了
window.opener=null; ? ? // 阻止關(guān)閉窗口時(shí)的提示
window.open('','_self'); ? ? // 新開窗口
window.close(); ? ? ?// 然后關(guān)閉當(dāng)前窗口
當(dāng)頁(yè)面新窗口打開時(shí)就不會(huì)出現(xiàn)瀏覽器左右滑動(dòng)的問(wèn)題了
window.opener=null; ? ? // 阻止關(guān)閉窗口時(shí)的提示
window.open('','_self'); ? ? // 新開窗口
window.close(); ? ? ?// 然后關(guān)閉當(dāng)前窗口