我的代码只是抓住trello板名,把它放在大括号中,然后在点击“添加卡片”时将其插入文本区域。但是,它不会将板名插入文本区域,除非我刷新...
你应该绑定到身体而不是它不存在的元素
$(‘body’).on(‘click’, ‘.js-open-card-composer’,function() { //probably don’t need the timeout anymore setTimeout(addTitle, 100);});</code>
$(‘body’).on(‘click’, ‘.js-open-card-composer’,function() { //probably don’t need the timeout anymore setTimeout(addTitle, 100);});
</code>