更新时间:2023-11-26 21:53:22
确定,所以在CF8中没有 real 方法。解决方法是将字符添加到字符串的开头或结尾,然后在客户端代码中处理它。我使用美国邮政编码,所以它只是一个格式化每个ZIP为ZIP + 4(00000-0000)的问题。那里的小破折号使它成为一个字符串。
Ok, so there is no real way to do this in CF8. The workaround is to add a character to the beginning or end of the string, and then handle it in the client side code. I'm working with USA ZIP Codes, so it was simply a matter of formatting each ZIP as ZIP+4 (00000-0000). That little dash in there makes it a string.