/* 日期格式化 */
function timestampToTime(times) {
var date = new Date(times);
Y = date.getFullYear() + '年';
M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '月'; D = date.getDate() + '日';
h = date.getHours() + ':';
m = date.getMinutes() + ':';
s = date.getSeconds();
return Y+M+D+h+m+s;
}
/*查詢有關回復記錄回覆 */
$.ajax({
url : "http://localhost:8005/answerFind/"+id,
type : "get",
dataType : "json",
success : function(result) {
if(result.code==1){
var answer= result.data;
for(var i=0;i<answer.length;i++){
var findAnswer = answer[i];
var contexts=findAnswer.context;
var times=findAnswer.publishTime;
var str="";
.....
........
}
},
});
</script>