前台:
function loadStireInfo(crruentArticleId)
{
$.ajax({
type:"post",
url:"util/getStoreInfo.aspx",
data:{articleId:crruentArticleId},
beforeSend:function(){ },
success:function(data)
{
var storeInfo = (new Function("return " + data))();
alert(storeInfo.topicImagePath);
alert(storeInfo.storeSummary);
alert( storeInfo.storeNum);
}
});
}
后台:
string resultStr = "{\"storeName\":\"" + storeName + "\",\"storeSummary\":\"" + storeSummary + "\",\"storeNum\":\"" + storeNum + "\",\"topicImagePath\":\"" + topicImagePath + "\"}";
Response.Write(resultStr);
Response.Flush();
Response.End();