JQUERY: Uncaught Error: Syntax error, unrecognized expression

后端 未结 7 1073
予麋鹿
予麋鹿 2020-12-15 17:28
console.log($(\'\"#\'+d+\'\"\'));

in html i have

5

eeeeeeeeeee

7条回答
  •  北海茫月
    2020-12-15 17:54

    try

    console.log($("#"+d));
    

    your solution is passing the double quotes as part of the string.

提交回复
热议问题