日期:2014-05-17  浏览次数:21099 次

ASP中如何循环输出对象的值
VB code

<script type="text/javascript" language="jscript" runat="server" src="js/json2.js"></script>
<%

Dim testJson
testJson = "{[{""WAREID"":""1"",""WARENAME"":""主仓库"",""WARECODE"":""1""},{""WAREID"":""2"",""WARENAME"":""现货"",""WARECODE"":""2""}]}"
Set myJSON = JSON.parse(testJson)
'怎么循环输出JSON对象的值
%>



------解决方案--------------------
这样的话,还是要用js取值,然后赋值到一个 Dictionary 对象中,再用VBS去引用该 Dictionary 对象