大家好,当我想通过选择器 jquery 添加标签不起作用时,结果我总是一个 id,代码如下:
$(".conversation").click(function () {
var profile_id = $(this).attr("id");
var name = $('#' + profile_ids).text();
$(".tags").tokenInput("add", {id: profile_id, name: name});
change();
return false;
});