现在,当我使用模拟器运行项目时,我在哪里看到打印的 console.log [文本]?
function getData(id){
// Dummy Data to be replaced with data from the server
console.log('get data for partner '+id);
var sendData = {
hotel_id : id,
user_id : userID
};
console.log(sendData);
var postData = JSON.stringify(sendData);
timeoutPost(5000,URL,{'postData':postData},function(returnData){
console.log('received data for hotel id '+id);
if(returnData.loginStatus){
if(returnData.status){
menuData = returnData.data;
setupAppForPartner();
}else{
popupMsg(SERVER_ISSUE_MSG);
}
}else{
goLogin();
}
}
}
function setupAppForPartner(){
console.log('setup the app partner pages');
cleanPage();
initData();
createHeader();
console.log('Debug print 1');
createTopNav();
console.log('Debug print 2');
createMenupage();
createpre();
console.log('Debug print 3');
createHeaderMenuPopup();
console.log('Debug print 4');
createCat();
console.log('Debug print 6');
$.mobile.loadPage("#pagePartnerStory");
$.mobile.changePage("#pagePartnerStory");
console.log('Debug print 14');
}