简体   繁体   English

被告知在您的项目中包含库或 SDK 是什么意思?

[英]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.

相关问题 如果我可以渲染到浮点纹理,这意味着什么,但我被告知它不受支持? - What does it mean if I can render to a floating point texture, but I'm told it's not supported? 在Angular 6项目中,@ brief是什么意思? - In an Angular 6 project, what does @brief mean? 这样呈现JavaScript表示什么? - What does it mean when your javascript is rendered like this? 当您编写自己的jquery函数时,这意味着什么? - When you write your own jquery function, what does this mean? {% include filename %} 和 {{ content }} 在 HTML 中是什么意思? - What does {% include filename %} and {{ content }} mean inside HTML? 当html标签属性在php中包含%时,这是什么意思? - What does it mean when a html tag attribute include % in php? 在d3 .classed()运算符中包含赋值是什么意思? - What does it mean to include an assignment in the d3 .classed() operator? Three.js / WebGL / GLSL - “#include”是什么<common> ”什么意思? - Three.js / WebGL / GLSL - What does “#include <common>” mean? Webstorm:关于项目子目录,“排除”真正意味着什么? - Webstorm: what does “excluded” really mean, regarding project subdirectories? vanilla JS 项目是指在没有使用任何库或框架的情况下完成的项目吗? - Does vanilla JS project mean the project that was done without using any library or framework?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM