-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 –