2 개의 함수 $ .post jQuery가 있는데, 첫 번째 $ .post가 로딩 된 후에 만 수행되는 두 번째 $. post를 만드는 방법은 무엇입니까? 두 번째 $의 .post 나쁜 영어에 대한jQuery posts 로딩
function play(id, file, dur, who, hname, artist, song)
{
if($.cookie('scrobb') == 'on')
{
setTimeout(function(){
$.post("/scrobbling/", { nowplaying: 1 , artist: artist, song: song, duration: dur},function(){});
}, 5000);
}
}
function songIsOver()
{
if($.cookie('scrobb') == 'on')
{
$.post("/scrobbling/", { submission: 1 , artist: bartist, song: bsong, duration: bdur},
function(data){});
}
}
죄송 플래시에서 호출 때문에 는하지만