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)

原文地址:https://www.cnblogs.com/wing2002li/p/5531096.html