我使用\n下载jQuery了Visual Studio 2017\ Install-Package bootstrap -Version 4.1.1
n现在我有一个包含jQuery 3.3.1的依赖项,但是当我移动到我的脚本文件时,我可以\xc2\xb4t访问,并且当我输入时jQuery我没有\n\nIntelliSense是否有一些参考必须输入,才能在我的脚本文件中使用?jQuery$. jQuery
我是 React.js 的新手,现在正在学习它。
现在我不确定我是否应该学习 React 用 Javascript 还是 Typescript 编写代码。
网上有很多教你使用 JS 进行 React 的教程,但我个人更喜欢 TS。
您建议使用什么语言来构建 React.js 应用程序
我使用这个 HTTP-Get 请求来获取翻译的不记名令牌:
https://api.cognitive.microsoft.com/sts/v1.0/issueToken?Subscription-Key=1fo8xxx
Run Code Online (Sandbox Code Playgroud)
使用返回的 Bearer 我想使用这个 API 端点翻译一个短文本:
https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=de
Run Code Online (Sandbox Code Playgroud)
在标题中,我把这个:
Content-Type: application/json; charset=UTF-8.
Run Code Online (Sandbox Code Playgroud)
在正文中,我把这个:
[
{"Text":"I would really like to drive your car around the block a few times."}
]
Run Code Online (Sandbox Code Playgroud)
我正在使用 Postman,所以在授权选项卡中我选择了 Bearer 并在它旁边的字段中插入:
Bearer <result from the first API call>
Run Code Online (Sandbox Code Playgroud)
如果我发送请求,我会得到以下结果:
{"error":{"code":401000,"message":"The request is not authorized because credentials are missing or invalid."}}
Run Code Online (Sandbox Code Playgroud)