日期:2014-05-20 浏览次数:20737 次
<script src="js/jquery-1.6.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#div_content>a").bind("click", function(){
var msg=$("#tb_test");
var oobbj=$(this);//record current command obj
if(msg.length==0){
//if not exit,then get ajaxHTML and append it to the current DOM
$.ajax({
type: "GET",
url: "handle/loadMsgClient.ashx",
eache: true,
success: function(retrevalue){
oobbj.after(retrevalue);
},
error: function(){
alert("参数出错,亲刷新后重试下^_^");
}
});
}
else{
//if exit,then consider two aspects: appended; insertAfter current DOM
if(oobbj.next("#tb_test").length!=0){
msg.remove();
}
else{