首页 > 代码库 > struts extjs 3.3.1 读取JSON文件

struts extjs 3.3.1 读取JSON文件

json文件和脚本代码:

jsonSrc/jsonTxt1.json,

{
    "personInfoList": [
        {
            "id": 0,
            "name": "A",
            "age": 12
        },
        {
            "id": 1,
            "name": "B",
            "age": 32
        },
        {
            "id": 2,
            "name": "C",
            "age": 2
        }
    ]
}

extJS3.3/test4.html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>test4.html</title>
    <link rel="stylesheet" type="text/css" href=http://www.mamicode.com/"../ext-3.3.1/resources/css/ext-all.css">>

struts extjs 3.3.1 读取JSON文件