我想在屏幕上顯示pushIssue
陣列,對象issue
僅在Javascript的幫助下被推入數組pushIssue
。據我所知,它可以與pushIssue.push(issue)
做的話,我想它顯示在屏幕上使用document.write()
但無法顯示它Javascript推送方法來填充數組
var issue = {
id: 1,
description: "This space is for description",
severity: "This is severity",
assignedTo: "Name of the assigned person",
status: "Issue Status "
}
var pushIssue = [];
嘗試'document.write(「
」)' – Rajesh感謝Rajesh你的時間。它的工作,但我不知道這個代碼'JSON.stringify(問題,0,4)'工作! –