File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 208208 <ItemGroup >
209209 <Content Include =" globals\Readme.md" />
210210 </ItemGroup >
211+ <ItemGroup >
212+ <Content Include =" timer\Readme.md" />
213+ </ItemGroup >
211214 <PropertyGroup Condition =" '$(Configuration)' == 'iOS'" >
212215 <TypeScriptModuleKind >commonjs</TypeScriptModuleKind >
213216 <TypeScriptRemoveComments >True</TypeScriptRemoveComments >
Original file line number Diff line number Diff line change 1313 var intervalId = setInterval (function (){ log (" Test" ); }, 2000 );
1414 ...
1515 clearInterval (intervalId)
16+ ```
17+ OR
18+ ``` js
19+ var timer = require (" timer" );
20+
21+ timer .setTimeout (function (){ log (" Test" ); }, 2000 );
22+
23+ var id = timer .setTimeout (function (){ log (" Test" ); }, 2000 );
24+ ...
25+ timer .clearTimeout (id);
26+
27+ timer .setInterval (function (){ log (" Test" ); }, 2000 );
28+
29+ var intervalId = timer .setInterval (function (){ log (" Test" ); }, 2000 );
30+ ...
31+ timer .clearInterval (intervalId)
1632```
You can’t perform that action at this time.
0 commit comments