小编Dar*_*ing的帖子

Javascript Uncaught SyntaxError: Unexpected Identifier (vue.js)

我在尝试让它工作时遇到了令人沮丧的时间,Chrome 一直显示未捕获的语法错误,但作为 Vue 的初学者,我不知道去哪里找。我在教程的一部分,它说添加列表区域。这里还有一个指向教程的链接。任何帮助或指示将不胜感激。谢谢!

new Vue({

  el: '#events',



  data: {
    event: {
      name: "",
      description: "",
      date: ""
    },
    events: []

    ready: function() {
      // When the application loads, we want to call the method that initializes
      // some data
      this.fetchEvents();
    },
    fetchEvents: function() {

      var events = [{

          id: 1,
          name: "TIFF",
          description: "Toronto International Film Festival",
          date: "2015-09-10"
        },
        {

          id: 2,
          name: "The Martian Premiere",
          description: "The Martian Comes to Theatres.",
          date: "2015-10-02"
        },
        {

          id: 3 …
Run Code Online (Sandbox Code Playgroud)

javascript vue.js

3
推荐指数
1
解决办法
8033
查看次数

标签 统计

javascript ×1

vue.js ×1