国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - Warum ist die Eslint-Prüfung so mühsam?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-19 10:25:10
0
2
660

K?nnen Sie erkennen, was falsch ist?

  loadMore () {
    this.loading = true
    setTimeout (() => {
      let last = this.list[this.list.length - 1]
      for (let i = 1; i <= 10; i++) {
        this.list.push(last + i)
      }
      this.loading = false
    }, 2500)
  }
error  in ./src/views/index.vue


  ?  http://eslint.org/docs/rules/func-call-spacing  Unexpected space between function name and paren
  /Users/wscart/Sites/node/toutiao/src/views/index.vue:92:5
      setTimeout (() => {
       ^


? 1 problem (1 error, 0 warnings)
PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證高級(jí)PHP講師

Antworte allen(2)
PHPzhong

在你的函數(shù)setTimeout名稱與括號(hào)之間存在空格。

僅有的幸福
  1. setTimeout();

  2. 縮進(jìn)問(wèn)題

  3. 縮進(jìn)問(wèn)題

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage