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.
我正在从 XML 文件加载我的菜单项以获得动态性,但我不确定如何处理以下内容,我应该用这些项目填充一个数组,然后在稍后创建影片剪辑时使用该数组作为参考,还是应该我宁愿立即创建影片剪辑并使用从 XML 文件接收到的数据填充它们而不留下痕迹?
在我看来,好处是平等的。
我可以想到制作中间数组的两个可能原因:
如果这两种情况都不存在,我认为不需要中间步骤。