Exemplo n.º 1
0
        public void TestjsonpForVue(string callback)
        {
            TokenModelJwt tokenModelJwt = new TokenModelJwt()
            {
                Role = "jsonp",
                Uid  = 1,
                Work = "dsdf"
            };
            //string call = "({" + response + "})";
            string response = string.Format("\"name\":\"{0}\"", "zhagnsan");
            var    modlestr = JsonConvert.SerializeObject(tokenModelJwt);
            string call     = callback + "(" + modlestr + ")";

            Response.WriteAsync(call);
        }