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

jQuery - 接收数据时出错

Here is my jQuery code:

 $.ajax({
    url: "/beautician/accept_order",
    data: dataOrder,
    dataType: "text",
    method: "POST",
    success : function(msg){
        console.log(msg);
    }
});

here is the PHP code:

public function accept_order(){
    echo "this is a test";
}

The output which I get in the console is: "success".

Please help me with this problem.

近期文章

  • $ _GET白页,如果在URL中未定义
  • 访问其他模块zf3的模型
  • wp_redirect()给出了混合内容错误
  • Woocommerce在cookie上保存电子邮件和手机,并在结帐页面上自动填充电子邮件/手机
  • PHP Mysqli更新网址点击[重复]
  • 查找,组合并求和数组值
  • Laravel 5.3自定义分页演示者
  • DB不接受中文空格字符
  • PHP cURL调用在Ubuntu 14.05中使用PHP 5.5.9,但在使用PHP 5.3的Ubuntu 12.04上不起作用
  • 防止PHP DomDocument loadHTML()删除由于实体编码而导致的字符
  • Avconv中的视频太短 - 但仅在作为crontab运行时
  • 无法使用AngularJS $ http.get从000webhost服务器获取JSON数据
  • 编辑表单PHP PDO
  • 如何裁剪pdf并保留链接
  • 当索引处的值是对象时,在PHP中处理未定义的偏移量警告
  • 自定义字体预览
  • 如何获得反向路由?
  • 带参数的htaccess RewriteRule
  • 链接到内部Javascript无法正常工作
  • 如何编辑Wordpress post.php文件?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华