<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<title>通讯录</title>
<input type="button" id="butn" />
<table class="table display" id="datatable">
</table>
<script>
con+="<th><div id='a'>类型</div></th>";
con+="<td style='height:70px;'><div class='a' style='width:100px;'>"+json.result[i].type+"</div>
$(function(){
$("#butn").click(function name() {
$(this).toggleClass("class22");
tar=document.getElementById("a");
if(tar.style.display=="block"){
$(".a").css("display","none")
$("#a").css("display","none");
} else {
$(".a").css("display","block")
$("#a").css("display","block");
}
});
});
</script>
<style type="text/css">
.a{
display:none;
}
#a{
display:none;
}
.class22{
background:url("assets/img/uuu.png");
width:25px;
height:20px;
}
#butn{
width:25px;
height:20px;
}
</style>
</body>
</html>
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<title>通讯录</title>
<input type="button" id="butn" />
<table class="table display" id="datatable">
</table>
<script>
con+="<th><div id='a'>类型</div></th>";
con+="<td style='height:70px;'><div class='a' style='width:100px;'>"+json.result[i].type+"</div>
$(function(){
$("#butn").click(function name() {
$(this).toggleClass("class22");
tar=document.getElementById("a");
if(tar.style.display=="block"){
$(".a").css("display","none")
$("#a").css("display","none");
} else {
$(".a").css("display","block")
$("#a").css("display","block");
}
});
});
</script>
<style type="text/css">
.a{
display:none;
}
#a{
display:none;
}
.class22{
background:url("assets/img/uuu.png");
width:25px;
height:20px;
}
#butn{
width:25px;
height:20px;
}
</style>
</body>
</html>