1.点击显示,再次点击隐藏
$("#pingfen-click").click(function(){ name = document.getElementById("pf-window").className; if(name == \'hide\'){ $(\'#pf-window\').removeClass(\'hide\'); }else{ $(\'#pf-window\').addClass(\'hide\'); } });
2.
$("#CheckPay li").click(function(){
$i = $(this).index();
$name = $("#CheckPay li a").eq($i).attr("class");
//alert($name);
if($name ==\'\'){
$().show();
}else{
$().hide()
}
})