zoukankan      html  css  js  c++  java
  • ext.net与extjs的关系

    一、在客户端,ext.net中可以使用extjs的语法。

    如发送ajax请求,

      Ext.Ajax.request({
                url: 'Common/getNode',
                headers: {
                    'userHeader': 'userMsg'
                },
                params: { nodeid: field.value },
                method: 'Post',
                success: function (response, options) {
                    var  streturn=response.responseText;
                    if (streturn == "noFunCode") {
                        Ext.MessageBox.alert('成功', '无该功能代码,请重新收入! ');
                    }
                    else
                    {
                        var objreturn = eval('(' + response.responseText + ')');                 
                        loadExample(objreturn.Url.replace('~',''), field.value, objreturn.Names);
                    }
                },
                failure: function (response, options) {
                    Ext.MessageBox.alert('失败', '请求超时或网络故障,错误编号:' + response.status);
                }
            });

    二、在客户端中,用ext.net可以序列化对象

    Ext.encode(App.searchFrm.getForm().getValues())

    在程序中,可以通过ext.net进行序列化

    JSON.Deserialize<Dictionary<string, dynamic>>(value)

  • 相关阅读:
    python的基本操作while循环体
    python中类的神奇方法应用案例
    Python中类的神奇方法
    python 中类的初始化方法
    Python中类的创建和self的作用
    投掷骰子的游戏,键值对
    字典常用方法
    剪刀石头布
    math 模块
    PYTHON内置模块
  • 原文地址:https://www.cnblogs.com/wing2002li/p/5531096.html
Copyright © 2011-2022 走看看