前端之家收集整理的这篇文章主要介绍了
ajax传递多个参数,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
var data=$(this).parent().prev().children().children('.details').children('.flag').html();
data = change(data);
$.ajax({
url:'topic/server_topic.PHP',type:'post',dataType:'html',data:'text='+data+'&value=1',error:function() {
alert('请求失败,请稍后再试');
},success:function(msg) {
$('.status').html(msg).css({"background":"linear-gradient(to bottom,#467500 100%,#73bf00 100%)","text-align":"center","width":"100%","height":"75px","line-height":"75px"}).fadeIn(0).fadeOut(5000);
}
原文链接:https://www.f2er.com/ajax/162591.html