>我正在尝试使用 Trello API 在 JavaScript 中创建一张新卡片。我有这个:
const fetch = require('node-fetch');
fetch(`https://api.trello.com/1/cards?key=${key}&token=${token}&idList=${listId}&desc=test&name=${name}`, {
method: 'POST'
})
它有效。但如果名字test#1
它只能保存test
.我该如何解决这个问题?
您需要先进行编码。 前任- "John#1"将被编码为"John%231">
你可以检查这个网站 -> https://www.urlencoder.org/