関数で関数を定義し、同じ変数名を共有するとどうなりますか?例:新しく定義された関数のパラメータの名前空間
$(document).ready(
$("a").on("click", function(event)
{
// function code goes here
function newfunction(event)
{
// function code dependant on parameter "event" goes here.
// Is "event" now a new variable totally independant to the first
// parameter "event". Were do I find something concerning the
// topic in the jQuery documentary?
}
}
);
);
行6の2番目の「イベント」は、3行目の最初の「イベント」とは完全に独立していますか?私はドキュメンタリーのjQueryの
http://learn.jquery.com/about-jquery/
に名前空間にfinde何かをcoun't。どこを見なければならないのですか?
を受賞。はい。これはjavaScriptの機能であり、jQueryではありません。「javascriptパラメータのスコープ」などを検索してください。 –