<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    不做浮躁的人
    正在行走的人...
    posts - 171,  comments - 51,  trackbacks - 0

    接上面,繼續(xù)討論TreeRPCController。該類在TreeLoadingController上擴(kuò)充了以下方法:
    1:doMove的部分代碼:
    var params = {
    ???//?移動(dòng)的節(jié)點(diǎn)以及節(jié)點(diǎn)所在的樹(shù)
    ???child: this.getInfo(child),
    ???childTree: this.getInfo(child.tree),
    ???//?移動(dòng)目的樹(shù),目的節(jié)點(diǎn),以及目的位置。
    ???newParent: this.getInfo(newParent),
    ???newParentTree: this.getInfo(newParent.tree),
    ???newIndex: index
    ??};

    ??var success;

    ??this.runRPC({??
    ???url: this.getRPCUrl('move'),
    ???
    ???load: function(response){
    ????success = this.doMoveProcessResponse(response, child, newParent, index) ;
    ???},
    ???//同步處理
    ???sync: true,
    ???//鎖定操作的兩個(gè)節(jié)點(diǎn)。
    ???lock: [child, newParent],
    ???params: params
    ??});
    2:doRemoveNode
    ???var params = {
    ???node: this.getInfo(node),
    ???tree: this.getInfo(node.tree)
    ??}

    ??this.runRPC({
    ????url: this.getRPCUrl('removeNode'),
    ????load: function(response){
    ?????this.doRemoveNodeProcessResponse(response, node, callObj, callFunc)
    ????},
    ????params: params,
    ????lock: [node]
    ??});

    3:doCreateChild
    var params = {
    ????tree: this.getInfo(parent.tree),
    ????parent: this.getInfo(parent),
    ????index: index,
    ????data: output
    ???}

    ???this.runRPC({
    ????url: this.getRPCUrl('createChild'),
    ????load: function(response) {
    ?????//?建議采用死數(shù)據(jù)?
    ?????this.doCreateChildProcessResponse( response, parent, index, callObj, callFunc)
    ????},
    ????params: params,
    ????lock: [parent]
    ???});

    posted on 2006-11-22 23:19 不做浮躁的人 閱讀(797) 評(píng)論(0)  編輯  收藏

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    <2006年11月>
    2930311234
    567891011
    12131415161718
    19202122232425
    262728293012
    3456789

    常用鏈接

    留言簿(9)

    隨筆分類(31)

    隨筆檔案(75)

    文章分類(1)

    文章檔案(3)

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲乱妇熟女爽到高潮的片| 亚洲AV无码乱码在线观看富二代| 亚洲宅男天堂a在线| 8x网站免费入口在线观看| 亚洲一区二区三区首页| 日韩精品极品视频在线观看免费| 无码久久精品国产亚洲Av影片| 国产在线一区二区综合免费视频| 日日狠狠久久偷偷色综合免费| 国产成年无码久久久免费| 亚洲成A人片在线观看无码不卡 | 亚洲成a人片在线观看老师| 免费精品久久久久久中文字幕| 亚洲女人被黑人巨大进入| 9久热精品免费观看视频| 亚洲AV永久纯肉无码精品动漫 | 国产精品亚洲专区无码不卡| 在线观看永久免费| 亚洲尤码不卡AV麻豆| 久久99热精品免费观看动漫| 久久亚洲春色中文字幕久久久| 最新欧洲大片免费在线| 亚洲国产精品人久久| 性短视频在线观看免费不卡流畅| 亚洲AV无码久久久久网站蜜桃| 暖暖免费高清日本中文| 国产精品黄页免费高清在线观看 | 无码国产精品一区二区免费| 亚洲欧美国产欧美色欲| 亚洲午夜福利在线观看| 亚洲视频在线免费播放| 极品色天使在线婷婷天堂亚洲 | 亚洲欧洲中文日韩av乱码| 花蝴蝶免费视频在线观看高清版 | 无码精品人妻一区二区三区免费看| 亚洲男人电影天堂| 日批日出水久久亚洲精品tv| 国产精品亚洲天堂| 99人中文字幕亚洲区| 国产伦一区二区三区免费| 亚洲AV成人无码网天堂|