Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 jquery 选择器中使用 javascript 变量
我有这个代码
var commentid=123456 var signature=($("#commentid_" + commentid).attr("data"));
但。它不起作用...我不确定。
解决了..
$(window).load(function(){ [code] }