ajax发送数据时的contentType
contentType:指明发送的data数据(这里是aa)的类型,默认是application/x-www-form-urlencoded(这种设置的特点是以key/value的方式
var aa = {"username":"llyppppppost","password":"33333333"}
$.ajax({
type:"POST",
url:"http://localhost:8080/springmvc_annotation/user3/add",
contentTyp
原创
2021-01-04 18:16:57 ·
344 阅读 ·
0 评论