$();
我认为它来自 jQuery。我习惯使用 jQuery 中的 $(document).ready(function(){});
但有人使用 $(function(){});
并且我我很困惑如何在 $();
中拥有匿名函数。
最佳答案
jQuery(function () { })
或 $(function () { })
是 jQuery(document).ready(function () { })
。请参阅http://api.jquery.com/jQuery/#jQuery3 .
关于jquery - $();是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5208584/