我正在尝试绑定到动态更改的 id ,该代码适用于静态 id 但一旦我用于动态绑定它就不会绑定。
$("#placeholder"+id).bind("\""+"plothover"+id+"\"", function (event, pos, item) {--some code here --}
如果以这种方式使用它可以正常工作
$("#placeholder"+id).bind("plothover", function (event, pos, item) {--some code here --}