zoukankan      html  css  js  c++  java
  • 一个普通的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);
                }
            }); 
        }
    
  • 相关阅读:
    VS2010 自动跳过代码现象
    Reverse Linked List II 【纠结逆序!!!】
    Intersection of Two Linked Lists
    Linked List Cycle II
    Remove Nth Node From End of List 【另一个技巧,指针的指针】
    Swap Nodes in Pairs
    Merge Two Sorted Lists
    Remove Duplicates from Sorted List
    Linked List Cycle
    Dungeon Game
  • 原文地址:https://www.cnblogs.com/Twittery/p/14971760.html
Copyright © 2011-2022 走看看