无法加载angularjs库 [英] Unable to load angularjs library

查看:41
本文介绍了无法加载angularjs库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发angularjs应用程序.我正在使用下面的链接来引用angularjs.

Hi I am developing angularjs application. I was using below link to refer angularjs.

 <script data-require="angular.js@1.4.5" data-semver="1.4.5" src="https://code.angularjs.org/1.4.5/angular.js"></script>

我遇到了错误. https://code.angularjs.org/1.4.5/angular.js net :: ERR_CONNECTION_TIMED_OUT

现在我突然无法加载该库.角位有任何问题吗?还有其他人面临这个问题吗?谢谢你.

suddenly now i am not able to load this library. Is there any problem with angular site? Anyone else facing this issue? Thank you.

推荐答案

使用bower并安装要使用的库总是更好.

Its always better to use bower and install the library which you want to use.

使用某些软件包管理器,例如 bower 来加载您的依赖项.

Use some package manager like bower to load your dependencies.

不要依赖cdn/library url,有时他们会随时更新url,因此可能会超时.

Don't rely on the cdn/library url , sometimes they update the url on anytime and it might get timed out.

这篇关于无法加载angularjs库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆