我正试图在新版标签中一次在Google Chrome中打开多个链接,但它失败了.
问题:
有了这个,我可以在Firefox中一次打开多个链接:
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8">
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" >');</script>
<link rel="stylesheet" href="style.css">
<script data-require="angular.js@1.2.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js" data-semver="1.2.17"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<button ng-click="openLinks()">Open</button>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
此外,我遇到了一个找到解决方法的人.
我尝试使用setInterval尝试单独打开链接但它不起作用.