Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚学习 jQuery,并发现了jQuery(function($)文档准备好的简写(在此处描述)。
jQuery(function($)
我的问题:是否可以在从同一页面下载到浏览器的不同文件中多次使用此语法?(我不需要从文件 B 中的文件 A 中调用变量)
是的,你可以....所有都将在第一次调用第一次运行的基础上执行....