---
title: "js 控制DIV隐藏"
author: "MyEyeOfJava"
date: "2009-11-15T12:42:04Z"
tags: []
slug: "js-div"
draft: false
lastmod: "2009-11-15T12:42:04Z"
id: 517492
url: "https://myeyeofjava.iteye.com/blog/517492"
---

```
if (list.rows[0].SEALPICTURE!=null){
left_menu.style.display="block";
$("#sealpicture").attr("src",img+list.rows[0].SEALPICTURE);
}else{
left_menu.style.display="none";
}
```

 left\_menu是ID