直接插入js,直接可以使用。
 -----------------------------------------------------------------------------------------
jQuery(document).ready(function(){
         alert('harry');
});通达oa  jQuery使用
 
jQuery(document).change(function(){
//alert('run here');
         jQuery.post("/widget/jquery_ajax_post/check_user.php",
          { username :  jQuery("#username").val() , content :  jQuery("#content").val()  }, 
          function (data, textStatus){
                        jQuery("#resText").html(data); // 把返回的数据添加到页面上
                   }
                            );
 
 
}); 
通达oa  jQuery  ajax  验证用户id是否存在
 
jQuery(document).change(function(){
//alert('run here');
         jQuery.post("/widget/jquery_ajax_post/check_user.php",
          { username :  jQuery("#username").val() , content :  jQuery("#content").val()  }, 
          function (data, textStatus){
                        //jQuery("#resText").html(data); // 把返回的数据添加到页面上
                            //alert(data);
                             if(data=='true'){
                             alert('该用户名已经存在');
                             }
                                             }
                            );
 
 
});