报错dfd.resolve();is not a function,为啥不能用
function stratRun(options, runTime) {
var dfd = $.Deferred;
// 恢复走路
restorewalk();
// 运动的属性
boy.transition(
options,
runTime,
'linear',
function(){dfd.resolve();})
return dfd;
}
function stratRun(options, runTime) {
var dfd = $.Deferred;
// 恢复走路
restorewalk();
// 运动的属性
boy.transition(
options,
runTime,
'linear',
function(){dfd.resolve();})
return dfd;
}
2016-11-04
举报