JQUERY: Uncaught Error: Syntax error, unrecognized expression

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

in html i have

5

eeeeeeeeeee

7条回答
  •  猫巷女王i
    2020-12-15 17:41

    This can also happen in safari if you try a selector with a missing ], for example

    $('select[name="something"')
    

    but interestingly, this same jquery selector with a missing bracket will work in chrome.

提交回复
热议问题