asp.net生成jason给js

  [WebMethod(EnableSession = true)]
        [ScriptMethod]
        public static object TEST(string testval)
        {
            int type = 0;
            string message = "";
            int precent = 0;
 return new { type = type, message = message, precent = precent };
        }

 

posted @ 2012-05-16 14:21  bule  阅读(541)  评论(0编辑  收藏  举报