JSON

无废话ExtJs 入门教程十八[树:TreePanel](2)

字号+ 作者:H5之家 来源:H5之家 2017-11-13 18:01 我要评论( )

1 using System.Web; HZYT.ExtJs.WebSite.App_Ashx.Demo 4 { Tree : IHttpHandler 6 { ProcessRequest(HttpContext context) 8 { 9 string strResult = @" [ 10 { text: '根下节点一[user图标]', leaf: true, iconC

1 using System.Web; HZYT.ExtJs.WebSite.App_Ashx.Demo 4 { Tree : IHttpHandler 6 { ProcessRequest(HttpContext context) 8 { 9 string strResult = @"[ 10 { text: '根下节点一[user图标]', leaf: true, iconCls: 'nodeicon' }, 11 { text: '根下节点二', leaf: true }, 12 { text: '根下节点三', leaf: false, children: [ 13 { text: '节点三子节点一', leaf: true }, 14 { text: '节点三子节点二', leaf: false, expanded: true, children: [ 15 { text: '节点三子节点二节点一', leaf: true }, 16 { text: '节点三子节点二节点二', leaf: true } 17 ] 18 } 19 ] 20 } ; 22 context.Response.Write(strResult); 23 } IsReusable 26 { { ; 30 } 31 } 32 } 33 }

 

2.效果如下:

无废话extjs教程

user.gif小图标

转载请注明出处:

 

posted on

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • ExtJS与PHP Json、MYSQL数据读取

    ExtJS与PHP Json、MYSQL数据读取

    2017-10-22 17:14

  • Android基础入门教程——7.2.2 Android JSON数据解析

    Android基础入门教程——7.2.2 Android JSON数据解析

    2017-10-19 09:21

  • Numpy 入门教程

    Numpy 入门教程

    2017-10-14 08:00

  • Java操作JSON入门教程

    Java操作JSON入门教程

    2017-07-31 08:03

网友点评
n