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)

  • 相关阅读:
    OpenWrt 上安装 AdGuard Home
    java网络编程
    如何进行数据库选型
    银行业务中台
    数仓|大数据时代,维度建模过时了吗?
    spqrk相关
    Apache Doris在美团外卖数仓中的应用实践
    hadoop的简单规划
    数据中台建设
    银行数仓分层
  • 原文地址:https://www.cnblogs.com/wing2002li/p/5531096.html
Copyright © 2011-2022 走看看