Home  >  Article  >  Backend Development  >  js怎么实现隐藏图片功能

js怎么实现隐藏图片功能

WBOY
WBOYOriginal
2016-06-20 12:41:12970browse

请问 我从后台遍历 到前端的图片 假如没有值的 怎么设置自动隐藏??
前端代码:  如何实现当图片遍历失败时 连同前面的 分类一起消失 例如 水果的图片没有值 包括水果两个字也一起消失!
求大神解救!
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



Document

 
   


    
  
  
   

 





    
  

  

 





    
  

  

 





    
  

  

 



水果
 js怎么实现隐藏图片功能 

 
坚果
 js怎么实现隐藏图片功能 
 
零食
 js怎么实现隐藏图片功能
 
蔬菜
 js怎么实现隐藏图片功能
 




回复讨论(解决方案)


{if $vo1''}
  
   js怎么实现隐藏图片功能 
 

{/if}

水果、坚果、零食、蔬菜 的输出,也应该用 volist

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn