Ifttt 过滤器替换字符串

时间:2021-02-07 05:09:52

标签: javascript ifttt

我有 & 的 url 编码

https://myurl.c/photo.jpg?width=1000px&height=500px&compress=none

在 ifttt 过滤器中使用 javascript 过滤器,我需要将 & 替换为 &

var foto = GoogleSheets.newRowInSpreadsheet.ColumnG;
var res = foto.replace(/&/g, '&');
Telegram.sendPhoto.setPhotoUrl(res);
Telegram.sendPhoto.setCaption(res);

我需要把图片网址从谷歌表中发布到电报中。

但问题是我将代码替换为 & 并从不工作。请帮忙。谢谢

0 个答案:

没有答案