<div class="codetitle"> <span><a style="CURSOR: pointer" data="81762" class="copybut" id="copybut81762" onclick="doCopy('code81762')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code81762"> <br>//定义对象<br>var finalInfo = new Object(); <br>//为对象赋值<br>finalInfo.purchaseInfoId = '';<br>finalInfo.purchaseMethodType = '';<br>finalInfo.contact = '';<br>finalInfo.contactTel = '';<br>finalInfo.bidInfoStr = '';<br>//将对象转换为json格式<br>var finalInfoStr = JSON.stringify(finalInfo);<br> </div>