jquery设置context
导读:jquery设置context?jquery ajax contentType设置默认get方法没有contentType,post方法的contentType为:application/x-www-form-urlencoded; cha...
jquery设置context?
jquery ajax contentType设置
默认get方法没有contentType,post方法的contentType为:application/x-www-form-urlencoded; charset=UTF-8
$.ajax({
type: 'post',
url:'/contentType',
contentType:'application/x-www-form-urlencoded',
data:{
username:'admin',
password:'123123'
} ,
dataType:'json',
success:function (data) {
}
} )
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: jquery设置context
本文地址: https://pptw.com/jishu/10651.html
