Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我像这样转储它之后,我有了这个结构:
<cfdump var="#currentInfo.answers#">
我怎样才能访问里面的值LIST?
LIST
我需要在将来将该值与另一个变量进行比较,以允许我进行某些操作。
下面的代码应该做到这一点:
currentInfo.answers["F0FF5FDC-D2C3-4D0F-D7D2D2886D5B430d"].LIST
由于该值是动态的,因此您需要以下内容:
currentKey="F0FF5FDC-D2C3-4D0F-D7D2D2886D5B430d"; currentInfo.answers[currentKey].LIST;