[英]What does it mean to be told to include a library or SDK in your project?
Specifically on the AWS developers documentation for setting up your own user pools with AWS Cognito it says the following:特别是在使用 AWS Cognito 设置您自己的用户池的 AWS 开发人员文档中,它说如下:
-Download and include the Amazon Cognito AWS SDK for JavaScript from GitHub. - 从 GitHub 下载并包含适用于 JavaScript 的 Amazon Cognito AWS 开发工具包。
-Download and include the Amazon Cognito Identity SDK for JavaScript from GitHub. - 从 GitHub 下载并包含适用于 JavaScript 的 Amazon Cognito Identity SDK。
-Include the JavaScript BN library for BigInteger computations from here. - 从这里包含用于 BigInteger 计算的 JavaScript BN 库。
-Include the Stanford Javascript Crypto Library from here. - 从这里包括斯坦福 Javascript 加密库。
-Include Moment.js, a JavaScript library used for date manipulation from here. - 包括 Moment.js,一个用于从这里进行日期操作的 JavaScript 库。
What does this mean specifically?这具体是什么意思? I have downloaded these javascript files and saved them in my project and then done the following for each of them:
我已经下载了这些 javascript 文件并将它们保存在我的项目中,然后对每个文件执行以下操作:
<script src="fileName"></script>
Is this all it means by include them?这就是包含它们的全部含义吗?
Below is the link with the actual instructions:以下是实际说明的链接:
http://docs.aws.amazon.com/cognito/latest/developerguide/setting-up-the-javascript-sdk.html http://docs.aws.amazon.com/cognito/latest/developerguide/setting-up-the-javascript-sdk.html
Yes, including SDK's into your project in JavaScript only requires you to add script tags.是的,在 JavaScript 中将 SDK 包含到您的项目中只需要您添加脚本标签。 (Unless you're using a package manager (such as npm or bower) or a build tool (such as gulp, grunt or webpack), which might require some extra steps).
(除非您使用包管理器(例如 npm 或 bower)或构建工具(例如 gulp、grunt 或 webpack),这可能需要一些额外的步骤)。
All of the scripts you need have been listed after the 8. step in the instructions you linked ( http://docs.aws.amazon.com/cognito/latest/developerguide/setting-up-the-javascript-sdk.html ):您需要的所有脚本都已在您链接的说明中的 8. 步骤之后列出( http://docs.aws.amazon.com/cognito/latest/developerguide/setting-up-the-javascript-sdk.html ) :
<script src="/path/to/jsbn.js"></script>
<script src="/path/to/jsbn2.js"></script>
<script src="/path/to/sjcl.js"></script>
<script src="/path/to/moment.min.js"></script>
<script src="/path/to/aws-cognito-sdk.min.js"></script>
<script src="/path/to/amazon-cognito-identity.min.js"></script>
<script src="/path/to/aws-sdk-2.3.5.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.