• 一个普通的Ajax


    function checkLaunch(actualIds,url){
            var actualIds = [actualIds.split(",")];
            var actualId = [];
            for (var i = 0; i < actualIds[0].length; i++) {
                debugger;
                actualId.push(
                    actualIds[0][i]
                );
            }
            debugger;
            var urls = "service/claim/prplantifraudbasic/prpLAntiFraudBasic/findByNodeCode";
            $.ajax({
                url: urls,
                type: "POST",
                data: JSON.stringify(actualId), //用于将 JavaScript 值转换为 JSON 字符串。
                async:false, //代表同步操作,默认为异步
                contentType: "application/json",
                success: function (data) {
                    debugger;
                    for (var i in data) {
                        if(data[i].nodecode =="SurveyLaunchNoCar" && data[i].nodeType =="2"){
                            cola.alert("报案号为"+"【"+data[i].registNo+"】"+"的案件存在未结束的调查,不能重复发起调查!");
                            return;
                        }
                    }
                    App.openPage("调查发起",url);
                }
            }); 
        }
    
  • 相关阅读:
    html5+css3中的background: -moz-linear-gradient 用法 (转载)
    CentOS 安装Apache服务
    Linux 笔记
    CURL 笔记
    Spring Application Context文件没有提示功能解决方法
    LeetCode 389. Find the Difference
    LeetCode 104. Maximum Depth of Binary Tree
    LeetCode 520. Detect Capital
    LeetCode 448. Find All Numbers Disappeared in an Array
    LeetCode 136. Single Number
  • 原文地址:https://www.cnblogs.com/Twittery/p/14971760.html
Copyright © 2020-2023  润新知