<html>
<body>
<h2>通过 JSON 字符串来创建对象</h3>
<p>
First Name: <span id=fname></span><br>
Last Name: <span id=lname></span><br>
</p>
[removed]
//txt为字符串
var txt = '{employees:[' +
'{firstName:Bill,lastName:Gates },' +
'{firstName:George,lastName:Bush },' +
'{