[英]How can I insert an External Javascript link in Javascript(for Example in VS-Code) as it is inserted in Codepen?
In Codepen there is a function to add links to the Javascript section (eg for jQuery, or others).在 Codepen 中有一个 function 来添加到 Javascript 部分的链接(例如,对于 jQuery 或其他)。 Now I want to recreate a project from Code-Pen with Visual Studio Code.现在我想用 Visual Studio Code 从 Code-Pen 重新创建一个项目。 But I don't know how to include these links in VS code (it doesn't work with in HTML).但我不知道如何在 VS 代码中包含这些链接(它不适用于 HTML)。 Below is a more detailed picture of what I mean.下面是我的意思的更详细的图片。 Does anyone have a tip, thanks!有没有人给点建议,谢谢!
Picture-Link: https://i.stack.imgur.com/Qy3Df.png图片链接: https://i.stack.imgur.com/Qy3Df.png
Try simply adding the link to the cdn in a script tag on your HTML file尝试在 HTML 文件的脚本标签中简单地添加指向 CDN 的链接
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous">
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.