【问题标题】:How to URL Decode in Power Apps Portals如何在 Power Apps 门户中进行 URL 解码
【发布时间】:2020-04-09 17:59:40
【问题描述】:

在 Power Apps 门户中使用 Liquid 是否有与 Shopify 的 url_decode 类似的功能。我尝试使用上面链接中提到的过滤器,但不适用于 Power Apps 门户。

我正在尝试从“?ParentCategory=Services%20&%20Fees&SubCategory=Test”中获取“服务和费用”。

【问题讨论】:

  • 字符串是页面url的一部分吗?

标签: liquid powerapps-portal


【解决方案1】:

有一个液体过滤器可以响应您的需要,这里是示例:https://shopify.github.io/liquid/filters/url_decode/

【讨论】:

  • 感谢@B 的建议。 Irena,但 Shopify 液体过滤器不适用于 Power Apps 门户液体标签。
【解决方案2】:

如果字符串是页面 url 的一部分,您可以使用液体

{% assign ParentCategory = request.params['ParentCategory'] %}

用法:

<a href={{ rParentCategory }}>Link</a>

【讨论】:

    猜你喜欢
    • 2022-08-15
    • 2020-12-20
    • 1970-01-01
    • 2011-09-02
    • 2020-08-06
    • 1970-01-01
    • 2015-01-18
    • 1970-01-01
    相关资源
    最近更新 更多