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のこのクールなオンロード機能を使用することで
$(document).ready(function(){ // my stuff }
それを呼び出した可能性のある他のものを上書きすることを心配する必要がありますか?
jQuery では、その関数がレディ キューに追加されるため、以前の関数を上書きすることを心配することなく、複数の ready() 関数を記述できます (スタックするだけです)。
$(document).ready はイベントであるため、必要な数のサブスクライバーがそれに接続できます。