mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
Format style
This commit is contained in:
parent
08a623935e
commit
5c40c2be8d
@ -118,7 +118,7 @@ function loadImageAsync(url) {
|
|||||||
```javascript
|
```javascript
|
||||||
const getJSON = function(url) {
|
const getJSON = function(url) {
|
||||||
const promise = new Promise(function(resolve, reject){
|
const promise = new Promise(function(resolve, reject){
|
||||||
const handler = function () {
|
const handler = function() {
|
||||||
if (this.readyState !== 4) {
|
if (this.readyState !== 4) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user