Update article.md
This commit is contained in:
parent
4159a65ea2
commit
24a6d296bd
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ In the above examples we didn't consider errors. What if the script loading fail
|
|||
|
||||
Here's an improved version of `loadScript` that tracks loading errors:
|
||||
|
||||
```js run
|
||||
```js
|
||||
function loadScript(src, callback) {
|
||||
let script = document.createElement('script');
|
||||
script.src = src;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue