我正在尝试使用 jquery 打开新选项卡。但是,它不适用于 safari 或 Mac。
我的代码:
<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>
Run Code Online (Sandbox Code Playgroud)