isfacebook

This property is a boolean value indicating if the app is currently running as a Facebook application

intel.xdk.isfacebook

Example:


document.addEventListener("intel.xdk.device.ready",onDeviceReady,false);

function onDeviceReady(evt)
{
  if (intel.xdk.isfacebook==true)
  {
    // Application is running as a Facebook app
    console.log("Running as Facebook app");     
  }
}
                          
有关编译器优化的更完整信息,请参阅优化通知