关于ajax的用法,具体怎么用

 $.ajax({
                    type: "POST",
                    async: false,
                    url: "<%= request.getContextPath() %>/apps/productRemedy/authorizeConfig!checkRolePrice.action",
                    data: {authorizeId:authorizeId,remedyPrice:remedyPrice,remedyProductName:remedyProductName,remedyProductId:remedyProductId,sheetTypeId:sheetTypeId},
                    success: function(msg){
                        if("true"==msg){
                            flag = true;
                            document.getElementById("remedyProductId").value= remedyProductId;
                            document.getElementById("authorizeId").value=authorizeId ;
                            document.getElementById("remedyPrice").value=remedyPrice ;
                        }else{
                            alert(msg);
                            flag = false;
                        }
                    }
                });

这是什么用法啊

type是提交,url是action地址,data是传过去后台的数据(你这里是键值对的方式),success是成功之后做的操作,返回的msg='true'时做if里面的操作,这个true不是代表真,而是一个字符串所以用引号,不等于true的话就执行else了

这个是jquery框架的语法。找个jquery的API文档来看就知道了。JQuery 1.4 API中文文档 CHM下载

type是动作,GET, POST
URL 地址
data 传送的数据
success 表示异步返回成功后,调用你的function,进行回调