Commit c92954b3 authored by clone's avatar clone

jquery 异步

parent ab1d9c38
...@@ -36,7 +36,9 @@ class Shop extends Basic ...@@ -36,7 +36,9 @@ class Shop extends Basic
"area_end" => 65,//面积结束范围 "area_end" => 65,//面积结束范围
"money_start" => 1000,//租金 price2 "money_start" => 1000,//租金 price2
"money_end" => 10000,//租金 "money_end" => 10000,//租金
"shangpu_tags" => "临近地铁," "shangpu_tags" => "临近地铁,",
"pageNo" => "1",
"pageSize" => 15
);*/ );*/
$params = $this->params; $params = $this->params;
$field = "id,agent_id,title,address,city,disc,disccircles,sales,yetai,room_area2,shangpu_type,is_test, $field = "id,agent_id,title,address,city,disc,disccircles,sales,yetai,room_area2,shangpu_type,is_test,
......
...@@ -41,10 +41,10 @@ class Basic extends Controller ...@@ -41,10 +41,10 @@ class Basic extends Controller
*/ */
public function __construct(Request $request = null) public function __construct(Request $request = null)
{ {
ob_start(); /* ob_start();
ob_end_flush(); ob_end_flush();
ob_end_clean(); ob_end_clean();
ob_get_contents(); ob_get_contents();*/
// CORS 跨域 Options 检测响应 // CORS 跨域 Options 检测响应
...@@ -58,7 +58,7 @@ class Basic extends Controller ...@@ -58,7 +58,7 @@ class Basic extends Controller
} elseif (strtoupper($this->request->method()) === "POST") { } elseif (strtoupper($this->request->method()) === "POST") {
$this->params = $this->request->getContent() != null ? json_decode($this->request->getContent(),true) : null; $this->params = $this->request->param() != null ? $this->request->param() : null;
} }
......
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=25' charset='utf-8'></script> <script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2225' charset='utf-8'></script>
\ No newline at end of file \ No newline at end of file
/** /**
* Created by 刘丹 on 2017/12/11. * Created by 刘丹 on 2017/12/11.
*/ */
define ([ 'css!style/home.css'], function () { define (['css!style/home.css','bootstrapJs'], function () {
var home = { var home = {
urls: '', urls: '',
init: function () { init: function () {
......
...@@ -39,4 +39,4 @@ require.config ({ ...@@ -39,4 +39,4 @@ require.config ({
} }
}); });
require (['require', 'jquery', 'doT', 'app/public', 'bootstrapJs','css!style/bootstrap.css','css!style/public.css']); require (['require', 'jquery', 'doT', 'app/public', 'css!style/bootstrap.css','css!style/public.css']);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment