jsFiddle 字符集

发布于 2024-12-22 19:49:44 字数 181 浏览 4 评论 0原文

有没有办法可以定义字符集以及属于 jsFiddle 上 标记的其他信息

我知道其侧面板的“信息”部分,但这不允许使用 标签。

提前致谢!

Is there a way I can define the character set, and other info that belongs in <meta> tags on jsFiddle?

I know about the "info" section of their side panel, but that doesn't allow <meta> tags.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必在意 2024-12-29 19:49:44

是的,只需将其放在 CSS 部分:

</style>
<meta name="description" content="Free Web tutorials" />
<style>

使用 jQuery 框架在 Javascript 部分进行测试:

var desc = $('meta[name="description"]').attr("content");
alert(desc);

更新 添加了一个小提琴

http://jsfiddle.net/mhart/3fHrt/

Yes, just put it in the CSS section:

</style>
<meta name="description" content="Free Web tutorials" />
<style>

Test in the Javascript section with the jQuery framework:

var desc = $('meta[name="description"]').attr("content");
alert(desc);

UPDATED Added a fiddle

http://jsfiddle.net/mhart/3fHrt/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文