自己在写ajax方法,根据返回值打开新页面时候遇到了windows.open拦截问题。发现非用户自己主动的window.open,谷歌浏览器会自动拦截掉;ajax中的window.open就会
解决方法:
var _target=window.open('about:blank')
_target.location.href='www.xxx.com';
0