html:
javascript
hotelRoomTab.js
struts 配置及action
struts配置返回注意是json就可以了
给出返回的JSON示例:
{"bed":null,"breakfast":null,"items":[{"bed":"双人床","breakfast":"","hotel":{"address":"","area":"东西湖区","city":"武汉","classId":9,"content":"<p><strong>uploadfile//png//go-bottom.png<//strong>上传成功!<//p>","createTime":null,"enterpriseAccount":null,"id":2,"imgUrl":"//uploadfile//png//go-bottom.png","indexCommen":null,"keyword":null,"name":"酒店名称","pageCommen":null,"pagePath":null,"passage":0.0,"province":"湖北","rating":0,"sortingCode":7,"status":0,"telephone":null},"id":1,"mondayPrice":0.0,"price":0.0,"roomType":"标准单人房","tuesdayPrice":0.0,"wednesdayPrice":0.0,"wide_band":"false"},{"bed":"双人床","mondayPrice":33.0,"price":65.0,"roomType":"标准双人房","tuesdayPrice":32.0,"wednesdayPrice":31.0,"wide_band":"true"},{"bed":"泰式大圆床","id":3,"wide_band":"false"}],"roomId":null,"roomType":null,"wide_band":null}
hibernate略
原文链接:https://www.f2er.com/dojo/291817.html