雁峰ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)建站的ssl證書(shū)銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
-----后臺(tái)
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Text; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } public string GetzNodes() { StringBuilder sb = new StringBuilder(); sb.Append(""); return sb.ToString(); } ////// 設(shè)置節(jié)點(diǎn) /// /// id /// 父級(jí)id /// 名稱 /// 是否是父節(jié)點(diǎn)? /// 是否展開(kāi)? ///返回節(jié)點(diǎn) private string SetParametes(string id, string pid, string name, bool parent, bool open = false) { //父節(jié)點(diǎn)的展開(kāi)圖標(biāo) string Popenpath = "../img/1_open.png"; //父節(jié)點(diǎn)的關(guān)閉圖標(biāo) string Pclosepath = "../img/1_close.png"; //子節(jié)點(diǎn)的圖標(biāo) string Cclosepath = "../img/2.png"; StringBuilder sb = new StringBuilder(); sb.Append("{"); sb.AppendFormat("id:{0},", id); sb.AppendFormat("pId:{0},", pid); sb.AppendFormat("name:\"{0}\",", name); if (open) { sb.AppendFormat("open: true,"); } if (parent) { sb.AppendFormat("iconOpen: \"{0}\",", Popenpath); sb.AppendFormat("iconClose: \"{0}\"", Pclosepath); } else { sb.AppendFormat("icon:\"{0}\"", Cclosepath); } sb.Append("},"); return sb.ToString(); } }
-----前臺(tái)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%=GetzNodes()%>
整合包下載:http://down.51cto.com/data/1967063