ajax

jQuery.ajax({
                 type:"POST",
                 url:"product.do?method=sevenOrEightLicenseNo",
                 data:{plateValue:nameValue},
                 cache:false,
                 dataType:"json",
                 success:function(jsonStr){
                        if (jsonStr === null) {
                                         return;
                                     }
                                     else {
                                         locaono = jsonStr[0].carno;
                                         jQuery("#m_text_id").val(locaono);
                                         locaono = '';
                                     }
                     initTr3(jsonStr);
                     if(jsonStr[jsonStr.length-1].isTheLastPage3=="true"){
                        jQuery("#pageNo_id3>div:last").css('display','none');
                     }
                 }
             });
 
jQuery.ajax({
                                    type:"POST",
                                    url:"txn.do?method=getRepairOrderByVehicleNumber&type=ajax&btnType=" + jQuery("#pageType").val() + "&vehicleNumber=" + jQuery("#licenceNo").val(),
                                    async:true,
                                    cache:false,
                                    dataType:"json",
                                    error:function(XMLHttpRequest, error, errorThrown) {
                                    },
                                    success:function(jsonStr) {
                                        initCustomerAndVehicle(jsonStr);
                                    }
                                }
                            );

你可能感兴趣的:(JavaScript,jsonp,Ajax)