The ext frontend receives the json data from the action
Ext.Ajax.request({
method:'POST',//Request method
params: {dagl_code:dagl_code},
url:lcwPath "/daxt/lcgl.shtml ?method=getJgBycode",//Requested url address
success: function(response, opts) {
if(response.responseText!='{}'){
alert(response.responseText);
//The first method
var dagl_jg = Ext.util.JSON.decode(response.responseText).dagl_jg;
// The second method
var json = eval("(" re.responseText ")");
var dagl_jg= json.dagl_jg;
var org_mc = Ext.util .JSON.decode(response.responseText).org_mc;
var lccode = Ext.util.JSON.decode(response.responseText).lccode;
var lcname = Ext.util.JSON.decode(response.responseText ).lcname;
Ext.getCmp("jgs").comboHidden.setValue(dagl_jg);
Ext.getCmp('jgs').setValue(org_mc);
Ext.getCmp('dagl_jg' ).setValue(dagl_jg);
Ext.getCmp('sslc').setValue(lccode);
Ext.getCmp('sslc').setRawValue(lcname);
var dagl_jg = Ext.getCmp('jgs').comboHidden.getValue();
lcStore.proxy = new Ext.data.HttpProxy({url: lcwPath '/daxt/lcgl.shtml?method=getDaxx&dagl_type=L&dagl_jg=' dagl_jg} );
lcStore.load();
Ext.getCmp('lcbh').setValue('');
}else{//No value, clear the information
Ext.MessageBox.show ({
title:'Prompt',
msg:config.string.NOTNUMBERMSG_OR_NUMBERLOSEEFFICACY,
minWidth:270,
icon:Ext.MessageBox.WARNING,
buttons:{"ok": "Close"},
fn:function(e){Ext.MessageBox.hide();},
closable:true
});
Ext.getCmp("jgs").setValue ("");
Ext.getCmp("lcbh").setValue("");
}
},
failure: function(response, opts) {
Ext.MessageBox .show({
title:'System prompt',
msg:'Unexpected exception occurred in the system',
minWidth:270,
icon:Ext.MessageBox.WARNING,
buttons: {"ok":"Close"},
fn:function(e){Ext.MessageBox.hide();},
closable:true
});
}
});

DJI has not confirmed any plans to introduce a new action camera yet. Instead, it seems that GoPro will get ahead of its rival this year, having teased that it will introduce two new action cameras on September 4. For context, these are expected to a

如何在FastAPI中使用请求体解析传入的JSON数据FastAPI是一个基于Python的现代化Web框架,它提供了丰富的功能和高性能的异步支持。在使用FastAPI处理HTTP请求时,经常需要解析传入的JSON数据。本文将介绍如何在FastAPI中使用请求体解析传入的JSON数据,并提供相应的代码示例。导入依赖首先,我们需要导入FastAPI的依赖和JS

PHP和MySQL如何处理JSON数据?在现代Web应用程序中,JSON(JavaScriptObjectNotation)经常被用于存储和交换数据。PHP和MySQL是两个常用的技术,如何使用它们处理JSON数据是一个常见的问题。本文将介绍如何使用PHP和MySQL来处理JSON数据,并提供一些代码示例。一、将数据从MySQL导出为JSON首先,让我们

Almost a year has passed since DJI released the Osmo Action 4 (curr. $299 on Amazon). Since then, the company has focused on its other divisions, including new RS camera gimbals. On top of that, it has introduced various drones as well like the Avata

Insta360hasreleasedanewactioncamera,itssecondoftheyearaftertheInsta360X4(curr.$499.99onAmazon).Asexpected,thecompanyhasintroducedtheGo3S,anupgradedthatGo3thatadds4Kvideorecordingcapabilities.Specifically,whileInst

某些情况,我们希望在Vuex中进行一些异步操作, 比如网络请求, 必然是异步的,这个时候怎么处理呢?下面就给大家介绍Vuex状态管理之Action异步操作,希望对需要的朋友有所帮助!

GoPro has now introduced its annual action camera refresh. Unlike in recent years, the company has decided to release two models. However, it has not returned to 360-degree cameras, despite teasing this time last year that it would replace the Max wi

elasticsearch中的绝大部分操作都是通过相应的action,这些action在action包中。它的结构如下图所示:上图是action包的部分截图,这里面对应着各个功能的action。各个action的包也都非常类似于index。这些action的实现也非常类似,都是基础自action,下图是indexaction的继承关系:因为这些action并未真正实现相应的功能,只是一个代理,因此实现上也非常简单。他们的主要作用是提供新建response和request的方法及对应的action


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment
