码迷,mamicode.com
首页 > 其他好文 > 详细

工作过程中的一段代码

时间:2016-06-15 01:36:06      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

<td class="text-center">{{demand.LOW_PRICE}}-{{demand.HIGH_PRICE}}?</td>
<td class="text-center">{{demand.LOW_SQUARE}}-{{demand.HIGH_SQUARE}}</td>
<td class="text-center">{{demand.ROOM1}}-{{demand.ROOM2}}</td>
<td class="text-center">{{demand.TYPE|T_}}/{{demand.SUBTYPE|ST_}}</td>
<td class="text-center">{{demand.CBD}}</td>
<td class="text-center">{{demand.CLOSED|CLOSED_}}</td>
<td class="text-center">{{demand.LOOKHDT | LOOKHDT_}}</td>
<td class="text-center">{{demand.DEMAND}}</td>
<td class="text-center">{{demand.INPUTDT|date:‘yyyy-MM-dd‘}}</td>
<td>{{demand.LASTDT|date:‘yyyy-MM-dd‘}}</td>
<td class="text-center">{{demand.SOURCE|SOURCE_}}</td>
<td class="text-center">{{demand.LOOKEDNUM}}/{{demand.LOOKED|date:‘yyyy-MM-dd‘}}</td>


reserve(demand.CRID, demand.CID,demand.TYPE,demand.SUBTYPE,demand.LOW_PRICE,
demand.HIGH_PRICE,demand.LOW_SQUARE,demand.HIGH_SQUARE,demand.ROOM1,
demand.ROOM2,demand.CBD,demand.DEMAND)

$scope.reserve = function(crid, cid, type, stype,low_price,high_price,low_square,high_square,room1,room2,cbd,demand){

$location.search("CRID", crid);
$location.search("CID",cid);
$location.search(‘TYPE‘, type);
$location.search(‘STYPE‘, stype);
$location.search(‘LOW_PRICE‘, low_price);
$location.search(‘HIGH_PRICE‘, high_price);
$location.search(‘LOW_SQUARE‘, low_square);
$location.search(‘HIGH_SQUARE‘,high_square);
$location.search(‘ROOM1‘, room1);
$location.search(‘ROOM2‘, room2);
$location.search(‘CBD‘, cbd)
$location.search(‘DEMAND‘, demand)
};

DataCenter.find("houses", {page:1,size:20,COMPANY:1,TYPE:$scope.type,STYPE:$scope.stype});
DataCenter.addEventListener("housesList",function(e){
$scope.housesList = e.data;
console.log("------------aaaaaa",$scope.housesList);
$scope.$apply();
});

工作过程中的一段代码

标签:

原文地址:http://www.cnblogs.com/shunzdd/p/angularjs.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!