2
我打算使用jquery打开新标签页。但是,它不适用于Safari或Mac。safari中的Javascript window.open问题
我的代码:
<script>
$(document).ready(function(){
$.ajax({
type: 'post',
dataType: 'html',
url:'http://localhost/test/remoteContent.html',
async: false,
success:function(data){
window.open("http:google.com",'_blank');
}
})
});
</script>
调试和检查你的成功的功能是否被调用或不 – Ahefaz
我有成功后的警报其作品 – Sudhir
是指https://stackoverflow.com/a/44181104/8317956 – anu