当前位置:网站首页>json事例
json事例
2022-08-09 20:51:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
json请求事例:
post_data.entrance="1111";
post_data.identity= "SZHT";
post_data.member_id="40";
post_data.message="测试111";
post_data.skuItem="{"0":{"sku_id":"15942","cost_price":"183","sku_price":"232.00","sku_number":"3"}}"
post_data.sku_source_type="0";
post_data.post_data.member_id =40;
$.ajax({
url : "",
type: "post",
data: JSON.stringify(post_data),
/*data:{ entrance_id:2,member_id:40,number:2,sku_id:15414 },*/
dataType: "json",
cache: false,
processData: false,
contentType: "application/json; charset=utf-8",
//contentType: 'application/x-www-form-urlencoded',
success: function (rsp) {
debugger;
if (rsp.code != 200) {
console.log(rsp.msg);
//return;
}
console.log(rsp.data);
}
});
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105809.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
MySQL慢查询的多个原因
Unity2D_背景粒子效果
URL Protocol web page to open the application
Cholesterol-PEG-Thiol,CLS-PEG-SH,胆固醇-聚乙二醇-巯基用于改善溶解度
微软word怎么转换成pdf文件?微软word转换为pdf格式的方法
What to do if Windows 11 can't find Internet Explorer
普源精电上半年扭亏为盈,高端产品持续发力!你看好仪器界“华为”吗?
线性表的定义和基本操作
Word第一页空白页怎么删除?删除Word第一页空白页方法教程
【云原生】4.2 DevOps 精讲篇
随机推荐
QGIS编译SIP的问题
Definition and Basic Operations of Linear Tables
筑牢安全防线 鹤壁经济技术开发区开展安全生产培训
Word箭头上面怎么打字
Skywalking系列学习之Trace Profiling源码分析
Interviewer: How to deal with Redis big key?
Endpoint mode for NetCore routing
Unity_物体自转
定投的基金
Excel如何打出正负号?Excel打出正负号的方法
Wps下划线怎么弄?Wps添加下划线的最全方法
一千以内的水仙花数
CMake installation upgrade higher version
gmail+mtalk配合打免费网络电话。
matlab neural network ANN classification
编程时请选择正确的输入法,严格区分中英文
浅谈Numpy中的shape、reshape函数的区别
SQL语句及索引的优化
哪款C语言编译器(IDE)适合初学者?
knn到底咋回事?