User:Hisa: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
function timer(){ | function timer(){ | ||
setTimeout(function(){$('#test01').text("yes");}, 20000); | var defer = $.Deferred(); | ||
setTimeout(function(){$('#test01').text("yes"); defer.resolve();}, 20000); | |||
defer.promise(); | |||
} | } | ||
Line 38: | Line 40: | ||
<div id="test01"></div> | <div id="test01"></div> | ||
<div id="test02"></div> | |||
Revision as of 12:55, 20 February 2013
TSS expression