js发送请求
来源:互联网 发布:网络电视剧上瘾全集 编辑:程序博客网 时间:2024/05/20 02:55
$.post("{:U('StorageManager/getStock')}", { goods_id: goods_id, attr: $(this).attr('data') },
function(data){
parent.$("#storage").val(data);
});
$.ajax({
async: false,
url: "{:U('StorageManager/getStock')}",
data:{goods_id: goods_id, attr: $(this).attr('data')},
type: "POST",
dataType:'json',
success:function(data){
parent.$("#storage").val(data);
}
function(data){
parent.$("#storage").val(data);
});
$.ajax({
async: false,
url: "{:U('StorageManager/getStock')}",
data:{goods_id: goods_id, attr: $(this).attr('data')},
type: "POST",
dataType:'json',
success:function(data){
parent.$("#storage").val(data);
}
});
$.ajax功能更强大
0 0
- js发送ajax请求
- js发送post请求
- js发送请求
- js发送SOAP请求
- 封装js发送http请求
- Node.js发送HTTP请求
- 原生JS发送ajax请求
- node js 发送http请求
- JS发送Get请求和Post请求
- Node.js中http 接收get请求、接收post请求、发送get请求、发送post请求
- js发送请求到java后台
- js发送post请求下载文件
- js拼装表单完成Post请求发送
- JS实现使用POST方式发送请求
- 2-使用原生js发送ajax请求
- js通过ajax发送请求赋值全局变量
- node.js发送http(get,post)请求
- 利用js实现页面关闭时发送http请求
- 64位系统odbc数据源问题
- 数据结构实验之二叉树六:哈夫曼编码
- Xcode 的正确打开方式——Debugging
- android 竖屏自定义录制视频
- Oracle 11gR2 使用RMAN Duplicate复制数据库
- js发送请求
- Spring MVC jar包详解
- PHP网站常见安全漏洞,及相应防范措施总结
- 几篇有趣的DL文章
- Powershell连接操作SQLSERVER
- Java基础回顾---Socket
- graph slam学习:g2o
- iOS SDK:iOS调试技巧 Xcode console
- xshell 跳板机配置