can't find error in my code?

后端 未结 3 663
予麋鹿
予麋鹿 2021-01-26 07:28

I am making a simple search code. I can\'t find error. The error message says Uncaught SyntaxError: Unexpected identifier on javascript line 40 (target=document.getElement

3条回答
  •  灰色年华
    2021-01-26 07:57

    Change this

    var list = {
       ...
    },
    
    var target=document.getElementById("outputPlace"),
    

    to this:

    var list = {
     ...
    };
    
    var target=document.getElementById("outputPlace"),
    

提交回复
热议问题