我有一个代码在index.js文件在android项目使用eclipse adt,
I have a code in index.js file in android project using eclipse adt,
当我使用模拟器运行项目时,我在哪里看到console.log [text]打印?
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');
}
控制台消息在eclipse中的Logcat中打印
我们需要在eclipse的日志目录中检查它,在运行应用程序后,我们将在那里通过console.log打印文本。由于显示的内容太多,我无法检查它,我们可以使用搜索选项来搜索特定的文本
相关文章:
- 将JS项目导入eclipse时出错
- 终于有办法让重构在Eclipse Kepler中的JavaScript、HTML项目中发挥作用了吗
- 带有javascript代码提示的Eclipse Android项目
- 是否可以混合使用 Eclipse 项目类型
- Sublime Text - 在不刷新 Eclipse 项目的情况下在 apache tomcat 上运行项目
- 如何使用 eclipse-mars IDE 将 jquery 插件设置到我的 codeigniter 项目中
- Eclipse - 撤消“转换为 JavaScript 项目”.".
- New Node.js Express 项目在 Eclipse 中为空
- Eclipse:强制项目不显示js目录的错误
- 将JavaScript项目和Eclipse中的Java项目链接起来
- 在eclipse中进行多语言(C++/JavaScript)项目
- 了解eclipse项目的性质和web开发的工作流程
- Java web应用程序的项目结构,javascript提供依赖管理、单元测试、ci以及对maven和eclipse的支
- 添加新文件时在eclipse中刷新项目
- 如何在eclipse中为Java项目启用Aptana特性
- 我有一个代码在index.js文件在android项目使用eclipse adt,
- eclipse:如何在现有的Android项目上启用JavaScript验证
- 在eclipse maven项目中集成网站模板
- JQuery移动不工作在Eclipse黑莓项目
- 如何在 SpringSource Tool Suite / Eclipse 中运行 JavaScript 项目