标准的ajax提交:
/** * @param {Object} data_ * @param {Object} url_ */ function getParamsSvnPathAndFileName(data_,url_){ var pathAndFileObj = {} $.ajax({ url:url_,dataType:"json",type:"POST",async:false,data:data_, success:function(data){ if(data){ pathAndFileObj = data; } } }); return pathAndFileObj; }
时间: 2024-10-03 23:28:40