angular.js 和 angular-ui bootstrap 的浏览器兼容性

Browser compatibility of angular.js and angular-ui bootstrap

我想决定是否可以在我的项目中使用 angular.js(和 anguar-ui-bootstrap)。

Web 应用程序 应该可以 与任何 reasonably modern browser, I was quite surprised that the right on the angular-ui-bootstrap 站点一起工作,点击 "create a build" 按钮后服务器回复:

Your current browser doesn't support creating custom builds. Please take a second to upgrade to a more modern browser (other than Safari).

带有 link 到 http://browsehappy.com,其中列出了我的 Safari (v.8),但是 angular-ui-bootstrap 明确排除它。

在 angular.js 的常见问题解答中是:

AngularJS is 100% JavaScript, 100% client-side and compatible with both desktop and mobile browsers.

bootstrap 3 本身也兼容。

由于我是 angular.js 的新手,只是下载并尝试学习它,但老实说,我不想浪费几个 days/weeks 来学习发现: 它不完全支持 Safariall reasonably modern browsers的支持对项目至关重要。

因此问题是:

angular-ui-bootstrap build 模态 window 启动一个名为 isOldBrowser 的函数。查看他们的 repo,您​​可以在 misc/demo/assets/app.js 下找到该功能。它不是寻找特定的浏览器,而是寻找能够执行特定功能或 return 某些结果的浏览器。据推测,检查将是他们确保您拥有合适浏览器的一种非常普遍的方式。

话虽如此,Bootstrap lists pretty much every browser as being supported with only a few exceptions (like Safari on Windows) plus a couple of bugs each. Angular has a similar statement 因为它们支持所有当前的浏览器(IE9 及更高版本)。无论哪种方式,您都应该安全地使用任何现代浏览器。