简单实体Json序列化(输出JSON的属性可变) 一.先看效果 可以看出 , 我们在序列化一个对像时, 只给出了 我们想要 输出的两个字段名, 实际实体有5个属性, 经过可变属性序列化后的JSON 结果,也是我们想要的. 二.正式上程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threadi
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript" src="../js/jquery-1.7.2.js"></script> <script type="text/javascript" src=