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.
如果服务器上的特定文件可用,我如何隐藏按钮/标签?(例如:www.google.com/test/test.xls)
因此,如果 test.xls 存在,那么应该隐藏 Button/label 吗?
尼尔斯
它真的很简单。使用此代码
if (<File Found> == YES) { button.hidden = YES; label.hidden = YES; } else { button.hidden = NO; label.hidden = NO; }