Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/402.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jsbin无法识别IE中已准备好的文档_Javascript_Jquery_Jsbin - Fatal编程技术网

Javascript jsbin无法识别IE中已准备好的文档

Javascript jsbin无法识别IE中已准备好的文档,javascript,jquery,jsbin,Javascript,Jquery,Jsbin,见: 这似乎很奇怪,但我认为jsBin不认识IE中的jQuery文档ready(其他语法,我经常使用): $(function () {}); 说: .ready()方法通常与匿名函数一起使用: $(document).ready(function() { // Handler for .ready() called. }); 这相当于调用: $(function() { // Handler for .ready() called. }); 我在jsbin中添加了以下测试代码:

见:


这似乎很奇怪,但我认为jsBin不认识IE中的jQuery文档ready(其他语法,我经常使用):

$(function () {});
说:

.ready()方法通常与匿名函数一起使用:

$(document).ready(function() {
  // Handler for .ready() called.
});
这相当于调用:

$(function() {
 // Handler for .ready() called.
});

我在jsbin中添加了以下测试代码:

$(document).ready(function () {alert('');}); // Works!
$(function () {alert('');}); // Fails
第二行肯定会在IE中抛出错误。有趣的是,IE调试器显示了以下标记:

<script>
window.onload = (function () {alert('');});
$(function () {alert('');});
</script>

window.onload=(函数(){alert(“”);});
$(函数(){alert(“”);});

调试器也没有定义
$
jQuery
对象。看起来jsbin试图解析jQuery代码???

但是jsbin怎么会有问题呢?jQuery就是jQuery。我遗漏了什么吗?@FelixKling你看到它不起作用了吗?我有很多这样的问题,我已经改用了,如果他不解决它,他就会失去用户……不是因为这种语法,而是因为他的网站不够专业,无法在他的网站上处理jquerywhole@Royi-也许他会修好它;我在此处输入了问题的票证: