style="display:{{searchInput==='' ? 'none':'block'}} "

当用户没有有效输入时,是否显示提交按钮

 style="display:{{searchInput==='' ? 'none':'block'}} "

原文地址:https://www.cnblogs.com/rsapaper/p/9690382.html