最后两个选项将其放入 Javascript 事件处理程序中。
您可以通过查看生成页面的源代码来了解其工作原理。(或者没有 jQuery)
This dropdown specifies where jsFiddle should put your Javascript code in the generated HTML.
The first two options put it in a raw <script> block in the <head> or <body>.The last two options put it in a Javascript event handler.
<script>
<head>
<body>
You can see how this works by viewing the source of the generated page.(or without jQuery)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
This dropdown specifies where jsFiddle should put your Javascript code in the generated HTML.
The first two options put it in a raw
<script>
block in the<head>
or<body>
.The last two options put it in a Javascript event handler.
You can see how this works by viewing the source of the generated page.
(or without jQuery)