-1
執行dragTrack()
函數後需要運行helloWorld()
。但在dragTrack
之後未被調用。回調函數jQuery
dragTrack(function(){
helloWorld();
});
function dragTrack() {
alert('first');
}
function helloWorld() {
alert('second');
}
dragTrack不接受任何參數? –
你應該先研究,而不是問問題,,,參考這些答案http://stackoverflow.com/questions/18514504/how-to-call-a-function-from-another-function-in-jquery –