SyntaxError: missing ) after argument list

后端 未结 6 850
滥情空心
滥情空心 2020-12-05 13:54

I am getting the syntax error:

SyntaxError: missing ) after argument list

From this jQuery code:

$(\'#contentData\').append         


        
6条回答
  •  时光取名叫无心
    2020-12-05 14:13

    SyntaxError: missing ) after argument list.

    the issue also may occur if you pass string directly without a single or double quote.

    $('#contentData').append("").
    

    so always keep the habit to pass in a quote like

     onclick=\"(canLaunch(\'' + v.LibraryItemName  + '\'))"\
    

提交回复
热议问题