tcoulter / jockeyjs

Library to facilitate communication between iOS apps and JS apps running inside a UIWebView
MIT License
458 stars 99 forks source link

嵌套调用jockey.on,出现函数被覆盖 #39

Open sunshineningjing opened 7 years ago

sunshineningjing commented 7 years ago

var dataInit = function () { GeoBOS.contacts.getContactsList(function( error, contactsList ){ if (error === null) { //for (var i = 0; i < 10000; i++) { $('#autoTestResultContactsList').text(contactsList.length); //} } else { $('#autoTestResultContactsList').text('getContactsList failed: ' + JSON.stringify(error)); } });

GeoBOS.im.getRecentChats(function(error, chatList){
        if(error === null){

            //for (var j = 0; j < 10000; j++) {
                $('#autoTestResultRecentChats').text(JSON.stringify(chatList));
            //}
        }else{
            $('#autoTestResultRecentChats').text("getRecentChats failed with " + selectedUserId + ":" + JSON.stringify(error));
        }

});

};