(jQuery)在函数末尾意味着什么? [英] What (jQuery) means in the end of function?

查看:50
本文介绍了(jQuery)在函数末尾意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个功能:

var waitingDialog = (function($){
.....
return{
}
})(jQuery);

您还可以解释$在函数中的含义吗?没有它,它会起作用吗?

Also could you explain what $ means in the function? Is it going to work without that?

推荐答案

在jQuery官方网站中有关于此的部分:

There is a section about that in official jQuery website : https://learn.jquery.com/plugins/basic-plugin-creation/#protecting-the-alias-and-adding-scope

这篇关于(jQuery)在函数末尾意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆