我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在ajax中传递参数

I have ajax script which is working fine. Once it was success, I want to pass parameter like header("Location: tar.php?php=$value");

Till now I only know $("body").load("rumour.php"); Help me pass parameter like we do have in PHP

    $.ajax ({
        type: "POST",
        url: "update_comment.php",
        data: { id1: id, comment1: comment },

            success: function(data) {
                $("body").load("rumour.php");
            }
   );

Try this:

$("body").html(data);

近期文章

  • HTTP POST请求问题
  • 优化代码php动态包含[关闭]
  • 使用PHP构建JSON数据
  • 如何解析网址的数组元素
  • ajax显示sql字段名称
  • 从html img src标记引用.php文件
  • 使用PHP在MYSQL中插入JSON值
  • CodeIgniter MVC和循环通过MySQL表
  • 从第2行开始将.csv文件插入mysql数据库
  • 在while循环中迭代关联数组
  • 小白求助!!为什么这个输入的变量会自动跳变??
  • 注册页面中的SQL连接错误
  • 字符串必须包含X个数字(但不一定要加入)
  • 当用户更改输入时,如何在PHP中不断更新变量?
  • PHP卷曲格式[关闭]
  • 从表中删除TR
  • echarts如何可以做到x轴为年龄分布,y轴为该年龄的数量?
  • 我无法获得完整的url路径[重复]
  • 有未定义的索引错误:文件
  • 如何将php js变量改为jquery文件

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华