jQuery JSON转换 数组转字符串 获取显示器长宽


@{
    Layout = null;
}



    
    jQuery JSON转换 数组转字符串 获取显示器长宽
    
    


    

头部

My Article

this is first article

this is second article,I'm Hongten

this is third article

this is 4's article





Controller


using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class EasyUITestController : Controller
    {
        public ActionResult JQTest()
        {
            return View();
        }

        public JsonResult ReutrnString()
        {
            string str = "[{\"id\":\"1\",\"name\":\"a\"},{\"id\":\"2\",\"name\":\"b\"},{\"id\":\"3\",\"name\":\"c\"}]";
            return Json(str, JsonRequestBehavior.AllowGet);
        }  
    }
}







你可能感兴趣的:(JavaScript)