Merge pull request #3054 from webFardin/patch-4
Fixed setTimeout() issue
This commit is contained in:
commit
47fec275c4
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ Also there is a special method for that, `elem.style.removeProperty('style prope
|
|||
```js run
|
||||
document.body.style.background = 'red'; //set background to red
|
||||
|
||||
setTimeout(() => document.body.style.removeProperty('background')); // remove background after 1 second
|
||||
setTimeout(() => document.body.style.removeProperty('background'), 1000); // remove background after 1 second
|
||||
```
|
||||
|
||||
````smart header="Full rewrite with `style.cssText`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue