Jquery Uncaught SyntaxError: Unexpected token } - Trying to pass guid as parameter

前端 未结 1 1413
忘掉有多难
忘掉有多难 2020-12-20 09:30

Hi I am trying to pass guid to a function but it gives me error,

Uncaught SyntaxError: Unexpected token }

var gg = \"som         


        
相关标签:
1条回答
  • 2020-12-20 10:14

    You need to escape stating and closing quotes of onclick=""

    var callFunction = "<tr class='MenuRow' onclick=\"myFunctionabc('" + gg + "')\"></tr>"
    
    0 讨论(0)
提交回复
热议问题