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

.get请求始终成功状态

I have to get the content of page demo_test.php, but the status is always = success, while "data" print the code of the index main and then not of demo_test.php.

Also if I put an inexistent address.php, status is always = success.

 $.get("demo_test.php",function(data,status){
    alert("Data: " + status);
 });

Why ? Thanks.

$.get( "demo_test.php", function(data) {
  alert( "Data: "+data );
})
.fail(function() {
    alert( "We failed" );
 });

近期文章

  • 捕获搜索文本,并在单击“提交”时将其传递到URL中
  • 使用jQuery处理表单
  • 多图像上传问题
  • 插入关系模型laravel雄辩
  • too long
  • jamierumbelow MY_Model:选择db不起作用
  • 确定用户是键入地址还是单击了href
  • too long
  • too long
  • 表单提交数据到SQL DB没有页面重新加载(jQuery / PHP?)然后更改div内容
  • Highstocks的JSON日期格式
  • PHP脚本+ MySQL只返回一行
  • CSS菜单网址未正确重定向
  • ReadyState上的Fire函数 - XMLHttpRequest
  • 从PHP中的原始类文件生成原型类
  • 如何获得多个复选框的REAL值?
  • JSON POST请求 - JSON数据,如何在具有代理请求的跨服务器上使用JSON格式的数据执行发布请求
  • 使用一个数据库开发Android应用程序和Web应用程序共享?
  • javascript - 将值从父窗口传递到子窗口和函数内
  • 无法使用Codenigitier自动加载Tank Auth

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华