ajax提交大文本数据,自己实现的不完整
ajax提交大文本数据,自己实现的不完整,因为要提交的东西数据量太大,导致获取的数据不完整,ajax是这样写的:
jQuery.ajax( {
type: 'POST',
url: '/doTradeReg.do',
data: 'goods_id='+goods_id+'&bpm_id='+bpm_id
+'&goods_no='+goods_no+'&goods_name='+goods_name+'&org_price='+org_price+'&market_price='+market_price
+'&sale_price='+sale_price+'&send_inter='+send_inter+'&buy_inter='+buy_inter+'&weight='+weight+'&stock_in='
+stock_in+'&stock_num='+stock_num+'&stock_out='+stock_out+'&stock_down='+stock_down+'&keywords='+keywords+'&outline='+outline+'&goods_desc='+goods_desc+'&state_code='+state_code,
success: function(data){
document.getElementById('insertone'+i).innerHTML='成功';
}
});