5
Phonegap v1.1.0,如何從console.log(字符串)訪問輸出?Phonegap WP7 Visual Studio 2010 console.log
// provide our own console if it does not exist, huge dev aid!
if(typeof window.console == "undefined")
{
window.console = {log:function(str){window.external.Notify(str);}};
}
// output any errors to console log, created above.
window.onerror=function(e){console.log("Error ::" + e);};
console.log("Installed console ! ");
它記錄到調試輸出窗口
Thanx !!這幫助我解決了一些惱人的問題:) – VDP