开发者

retrieving and comparing xml data

In the following code, i am submitting 'suburb' value through HTML form then this value 开发者_JS百科match with the suburb of 'address' element of xml file. which i have done and it showing all addresses of that suburb on google map but i need to display just two addresses of that suburb that offer less rent.


The steps you need to take in order to get the two cheapest rental properties are:

  1. Get all properties within the your specified location into an array.
  2. Sort the array based on price of the rent.
  3. Take the first two items of the array.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜