getCookieList Method

This method will return an array containing the names of all the previously saved cookies using the setCookie command.

var dataArray = intel.xdk.cache.getCookieList();

Description:

This method will return an array containing all the names of all the previously saved cookies using the setCookie command. These names can then be used in calls to getCookie.

Available Platforms:

Returns:

dataArray: An array of all the unique names of previously saved data.

Example:


var cookiesArray = intel.xdk.cache.getCookieList();
for (var x=0;x<cookiesArray.length;x++)  
{
  alert(cookiesArray[x]+":"+intel.xdk.cache.getCookie(cookiesArray[x]));
}
              
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.