以下のコードについての質問です。
なぜfunctionは二ついるのでしょうか?
一つ目のfunctionはなぜ必要なのでしょうか?
<button>add</button>
$(function(){
$('button').click(funciton(){
var p = $('<p>').text('vanish').addClass('vanish');
$(this).before(p);
});
});
回答2件
あなたの回答
tips
プレビュー
投稿2015/05/05 08:06
以下のコードについての質問です。
なぜfunctionは二ついるのでしょうか?
一つ目のfunctionはなぜ必要なのでしょうか?
<button>add</button>
$(function(){
$('button').click(funciton(){
var p = $('<p>').text('vanish').addClass('vanish');
$(this).before(p);
});
});
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/05/05 08:36