首页 > Web开发 > 详细

模拟页面获取的PHP数据

时间:2017-07-01 19:05:02      阅读:261      评论:0      收藏:0      [点我收藏+]
<?php 
return array(
  "aData" => array(//通勤方式
    "trafficType" => array(
      0 => array(
        "typeId" => 1,
        "iconFont" => "e7d9",
        "title" => "公共交通"
      ),
      1 => array(
        "typeId" => 2,
        "iconFont" => "e7d8",
        "title" => "骑行"
      ),
      2 => array(
        "typeId" => 3,
        "iconFont" => "e7da",
        "title" => "步行"
      ),
      3 => array(
        "typeId" => 4,
        "iconFont" => "e7d7",
        "title" => "驾车"
      )
    ),
    "trafficTime" => array(//时间区间
      "min" => 15,
      "max" => 60,
      "unit" => "分钟",
      "granularity" => 15,
      "defaultValue" => 15
    ),
    "expirePrice" => array(//价格区间
      "min" => 0,
      "max" => 10000,
      "unit" => "元",
      "granularity" => 500,//颗粒度
      "defaultMinValue" => 0,
      "defaultMaxValue" => 10500
    ),
    "listUrl" =>  "http://xxx.com.cn/sh/commuting/list" //通勤找房列表页地址
  )
);

 

模拟页面获取的PHP数据

原文:http://www.cnblogs.com/camille666/p/page_faultdata_php_1.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!