为什么有效(“整数”,“1,5”)=是? [英] Why isvalid("integer","1,5") = YES?

查看:164
本文介绍了为什么有效(“整数”,“1,5”)=是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么 #isValid(integer,1,5)#输出YES?我期望它输出像 #isValid(integer,1.5)#



'将用< CFIF isvalid(integer,1,5)AND isnumeric(1,5)> ...验证。 p>

解决方案

Adob​​e知道这一点,但是...


州:已关闭



状态:已撤销



原因:AsDesigned


https://bugbase.adobe.com/index.cfm?event=bug&id=3169196



TBH我有点尴尬,要使用



猜猜是什么,它会在 CF12 中解决!


毫无疑问,这种行为是不正确的。它显然是
错误,应该纠正。然而,它一直是这样的
永远和做这样一个根本的变化有很大的潜力,
打破了很多应用程序。我们不想在这个版本中这样做。
由于Rakshith已经通讯,我们计划在Dazzle中进行这样的更改
,我们将纠正行为,而不用担心
的向后兼容性。


http://blog.adamcameron.me/2014/02/can-we-please-agree-that-adobe-is-not.html


Why does #isValid("integer","1,5")# output YES? I expected it to output NO like #isValid("integer","1.5")# does.

I'm going to validate with <CFIF isvalid("integer","1,5") AND isnumeric("1,5")> ...

解决方案

Adobe is aware of this, but...

State: Closed

Status: Withdrawn

Reason: AsDesigned

https://bugbase.adobe.com/index.cfm?event=bug&id=3169196

TBH I'm a little embarrassed to be using a language that can't even validate integer correctly.

UPDATE:

Guess what, it'll be addressed in CF12!

There is no doubt that this behavior is incorrect. It is obviously wrong and it should be corrected. However, it has been like this forever and making such a fundamental change has a great potential to break a lot of applications. We dont want to do that in this release. As Rakshith has already communicated, we plan to take up such changes in 'Dazzle' where we will correct the behavior without worrying about backward compatibility.

http://blog.adamcameron.me/2014/02/can-we-please-agree-that-adobe-is-not.html

这篇关于为什么有效(“整数”,“1,5”)=是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆