#12003/5/12 10:45:32
CFMX环境:
我定义了一数组。
想用IsDefined去测试其中一个元素是否存在。
但是不行。
后来查ref,说The IsDefined function does not test the existence of array elements. To test whether data exists at an array index, copy the array element to a simple variable and use the IsDefined function to test the existence of the copy.
所以,定义一个变量check
但是如果myArray[3]是没定义的。则就会报错。这样还是不能达到原来的目的。
请问有什么办法可以判断数组其中一个元素是否存在呢?
谢谢。