Update article.md

This commit is contained in:
Violet.Lee 2019-10-29 01:58:53 +09:00 committed by GitHub
parent 4159a65ea2
commit 24a6d296bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;