text: $(document).ready(function (){  
  	
      $("#msg").click(function () { 
      	$("#num1").empty();
          $.ajax({  
              url:'/OnlineLearning/test/input_user!queryHello',  
              type:'POST',  
              data:"{}",  
              dataType:'json',  
              success:function (data) {  
                  $("#num1").append(data.num);  
              }  
          });  
          /*$.getJSON("/test/input_user!queryHello", function (data) { 
           //通过.操作符可以从data.hello中获得Action中hello的值 
           $("#allUser").html("输出了: " + data.hello); 
           });*/  
      }); 
  		$("#users").click(function () { 
  			$("#allcomment").empty();
  		    $.ajax({  
  		        url:'/OnlineLearning/test/loadcomment.action',  
  		        type:'post',  
  		        data:"{}",  
  		        dataType:'json',  
  		        success:function (data) {  
  		            /*$.each(data.userList, function (i, value) { 
  		             $("#allUser").append("<div>输出了：id:" + value.id + ", name: " + value.name + "</div>"); 
  		             });*/
  		            $(data.vcList).each(function (i, vc) {
  		                $("#allcomment").append("<div>输出了：name:" + vc.username+ ", name: " + vc.videocontent + ", support: " +vc.support+"</div>");  
  		            });  
  		
  		        }  
  		    });  
  		}); 
  		
  });
  		