我正在尝试从trello卡导入评论并将其显示在div上。 这是我的js代码。无法解决我的问题。
我搜索了几个解决方案,找不到出路。
var onAuthorize = function () {
updateLoggedIn();
$("#output").empty();
Trello.members.get("me", function (member) {
/* Build your $cards element */
var $actions = $('#output').text("Loading comments...");
var comment = card.actions({ filter: 'commentCard' })
var boardId = "3VGc5MCF"
var listId = "58c00072d8d4ceb75bcca143";
var cardId = "70kA38Pa";
var resource = "/lists/" + listId + "/cards/" + cardId + "/actions/";
Trello.get(resource, function (actions) {
$actions.empty();
$.each(actions, function (ix, action) {
$('<div class="card">')
.html('<div class="card__title">${card.actions}</div>')
.appendTo($actions);
});
});
});
};