Javascript 使用jquery模板呈现json

Javascript 使用jquery模板呈现json,javascript,jquery,json,templates,Javascript,Jquery,Json,Templates,我有以下Json输出 { "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for

我有以下Json输出

{ "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for the better going in to 2014.</p>"}]}
{“idsithislist”:“28184281812818028178”,“rowsreturn”:“4”,“List”:[{“ContentID”:28184,“ArticleType”:“News”,“Headline”:“Mobile Bytes”,“Article”:“HTC CFO Chialin Chang预计制造商的命运将在2014年有所改变。”
我需要获取“Headline”并使用jquery模板显示它,我通常使用{{:Headline}},但由于某些原因它不起作用,可能是因为它在“列表”中,如何将“Headline”呈现出来?

使用access解析字符串,然后使用
a.List[0]。Headline

var a=JSON.parse('{ "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for the better going in to 2014.</p>"}]}');

console.log(a.List[0].Headline);
var a=JSON.parse(“{”idsithislist:“28184281812818028178”,“rowsreturn:“4”,“List:[{”ContentID:“28184,”ArticleType:“News”,“Headline:“Mobile Bytes”,“Article:”HTC首席财务官张嘉林(Chialin Chang)预计制造商的命运将在2014年好转。

“}]); console.log(a.List[0].Headline);

使用解析字符串,然后使用访问
a.List[0]。Headline

var a=JSON.parse('{ "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for the better going in to 2014.</p>"}]}');

console.log(a.List[0].Headline);
var a=JSON.parse(“{”idsithislist:“28184281812818028178”,“rowsreturn:“4”,“List:[{”ContentID:“28184,”ArticleType:“News”,“Headline:“Mobile Bytes”,“Article:”HTC首席财务官张嘉林(Chialin Chang)预计制造商的命运将在2014年好转。

“}]); console.log(a.List[0].Headline);

使用解析字符串,然后使用访问
a.List[0]。Headline

var a=JSON.parse('{ "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for the better going in to 2014.</p>"}]}');

console.log(a.List[0].Headline);
var a=JSON.parse(“{”idsithislist:“28184281812818028178”,“rowsreturn:“4”,“List:[{”ContentID:“28184,”ArticleType:“News”,“Headline:“Mobile Bytes”,“Article:”HTC首席财务官张嘉林(Chialin Chang)预计制造商的命运将在2014年好转。

“}]); console.log(a.List[0].Headline);

使用解析字符串,然后使用访问
a.List[0]。Headline

var a=JSON.parse('{ "IDsInThisList":"28184,28181,28180,28178","RowsReturned":"4","List" :[{"ContentID":28184,"ArticleType":"News","Headline":"Mobile Bytes","Article":"<p>HTC CFO Chialin Chang expects the manufacturer&rsquo;s fortunes to change for the better going in to 2014.</p>"}]}');

console.log(a.List[0].Headline);
var a=JSON.parse(“{”idsithislist:“28184281812818028178”,“rowsreturn:“4”,“List:[{”ContentID:“28184,”ArticleType:“News”,“Headline:“Mobile Bytes”,“Article:”HTC首席财务官张嘉林(Chialin Chang)预计制造商的命运将在2014年好转。

“}]); console.log(a.List[0].Headline);

json不直接填充html您必须使用任何javascript模板引擎:例如:JADEjson不直接填充html您必须使用任何javascript模板引擎:例如:JADEjson不直接填充html您必须使用任何javascript模板引擎:例如:JADEjson不直接填充html您必须使用任何javascript模板引擎:例如:如何使用Jquery模板显示?Jquery模板是什么意思?但是如何使用Jquery模板显示?Jquery模板是什么意思?但是如何使用Jquery模板显示?Jquery模板是什么意思?但是如何使用Jquery模板显示?Jquery模板是什么意思?