---
title: "js---eavl获取{object ，object}值"
author: "sdk4986"
date: "2013-06-21T15:33:18Z"
tags: []
categories: ["Web前端"]
slug: "js-eavl-object-object"
draft: false
lastmod: "2013-08-20T18:13:52Z"
id: 1891593
url: "https://sdk4986.iteye.com/blog/1891593"
---

//保存操作  
        text : lang('l\_save'),  
        /\*id: 'btnsave',\*/  
        handler : function() {  
         ucstarCustomerInfoMainForm.form.doAction('submit',{ //将表单数据提交到服务器  
              url : ucstarCustomerInfoFormSaveUrl,  
              method : 'post',  
              success : function(form, action) {  
               ucstarCustomerInfoSearchForm();  
               Ext.MessageBox.alert(  
                   lang('l\_info'),  
                   lang('l\_message\_success'),  
                   function(btn) {  
                    ucstarCustomerInfoMainFormWin.hide();

                   });  
              },  
              failure : function(form, action) {

               //在这里的数据格式为{success:true,msg:'发送成功'} ，记住msg的消息一定要打引号。

               var responseRs = action.response.responseText;  
               var responseMsg = eval("(" + responseRs + ")");  
               var msg = responseMsg.message;  
               //alert(msg);  
               Ext.MessageBox.alert(lang('l\_error'),msg);  
               //ucstarCustomerInfoMainFormWin.hide();  
              }  
             });

        }