字符截取

                $.ajax({
                       type: "POST",
                       cache: false,
                       async:false,
                       url: "saveManager.action",
                       data: {"yhm":tyhm,"xm":txm,"mm":tmm,"zt":tzt,"sjhm":tsjhm},
                       success: function(msg){
                            var str=msg;
                            var newstr=str.substring(1,str.length-1);
                            arr=newstr.split("@"); 
                            if (arr[0]==0){
                                $('#aw').window({
                                    onClose:function(){
                                    reloadself('gly');
                                    }
                                });
                                $('#aw').window('close');
                            }else{
                                msger(arr[1]);
                                return false;
                            }
                       }
                    });

 

posted @ 2015-07-02 09:03  wmsocool  阅读(86)  评论(0)    收藏  举报