文章来自:源码在线https://www.shengli.me/javascript/309.html
当我们在一个 ajax 回调中执行 window.open 方法时,新页面会被浏览器拦截。
因为在 Chrome 的安全机制里,非用户直接触发的 window.open 方法,是会被拦截的。
解决方法:
文章来自:源码在线https://www.shengli.me/javascript/309.html
当我们在一个 ajax 回调中执行 window.open 方法时,新页面会被浏览器拦截。
因为在 Chrome 的安全机制里,非用户直接触发的 window.open 方法,是会被拦截的。
解决方法: