gpt4 book ai didi

冷聚变 8 : IsDefined ('URL.variable' ) and is not ""?

转载 作者:行者123 更新时间:2023-12-04 13:10:09 25 4
gpt4 key购买 nike

我试图找出 url 变量是否存在,如果不存在,请确保它不为空。

这不起作用:

<cfif IsDefined('URL.affiliateId') and is not "">
//
</cfif>

最佳答案

<cfif structKeyExists(url, 'affiliateID') and trim(url.affiliateID) neq "">...</cfif>

关于冷聚变 8 : IsDefined ('URL.variable' ) and is not ""?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4136711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com