<script type="text/javascript">
function loadForm() {
//加载表单数据
var form = new mini.Form("#form2");
$.ajax({
url: "/S_G.aspx?method=LoadData&RowID=1",
type: "post",
success: function (text) {
alert(text );//得到的数据是:[{"GoodsNO":"811760121"}]
var data = mini.decode(text); //反序列化成对象
form.setData(data); //设置多个控件数据
}
});
}
</script>