当前位置:网站首页>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
边栏推荐
- Definition and Basic Operations of Linear Tables
- SecureCRT 设置超时自动断开连接时长
- 没有 accept,我可以建立 TCP 连接吗?
- DSPE-PEG-Silane, DSPE-PEG-SIL, phospholipid-polyethylene glycol-silane modified silica particles
- Unity_物体自转
- 下秒数据:湖仓一体带来的现代数据堆栈变革开始了
- 小黑leetcode清爽雨天之旅,刚吃完宇飞牛肉面、麻辣烫和啤酒:112. 路径总和
- 一千以内的水仙花数
- 定投的基金
- 场效应管Mosfet之雷卯Leiditech对应英飞凌Infineon
猜你喜欢
随机推荐
威纶通触摸屏制作自定义弹出窗口的具体方法(3种)
Problems with compiling SIP with QGIS
Install Mysql8.0 on windos, and solve the problem of re-login exception ERROR 1045 (28000)
Characteristics and Development Prospects of Korea's Cyber Security System
Two methods of implementing inverted strings in C language
LoRa无线技术在物联网应用市场的概况和发展
定投的基金
CMake 安装升级更高版本
mysql配置参数详解[通俗易懂]
buuctf(探险2)
痛击面试官 CURD系统也能做出技术含量
POWER SOURCE ETA埃塔电源维修FHG24SX-U概述
MySQL Notes-06 Basic SQL Operations
Week 8 Deep learning for object detection
一种基于连接和安全熵的网络空间整体安全认识和方法
source install/setup.bash时出现错误
How to fix Windows 11 not finding files
MySQL跨表、多表更新SQL语句总结
安科瑞无线物联网智能电表ADW300指导性技术要求-Susie 周
poj 3070 Fibonacci(简单矩阵连乘)
![[corctf 2022] 部分](/img/03/ee1ead55805a2ac690ec79c675c3e6.png)







