偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Clouda Manifest介紹

移動(dòng)開(kāi)發(fā)
Clouda框架會(huì)將各個(gè)package.js中描述的JS和CSS資源自動(dòng)寫入manifest文件形成離線緩存。 如果對(duì)于圖片,音樂(lè)等其他文件也有離線緩存需求,可通過(guò)建立app.manifest文件進(jìn)行描述。

Clouda框架會(huì)將各個(gè)package.js中描述的JS和CSS資源自動(dòng)寫入manifest文件形成離線緩存。 如果對(duì)于圖片,音樂(lè)等其他文件也有離線緩存需求,可通過(guò)建立app.manifest文件進(jìn)行描述。 在app.manifest中描述過(guò)的資源,Clouda框架在啟動(dòng)時(shí)會(huì)一并寫入整體manifest文件中。

app.manifest文件應(yīng)該建立在如下位置,與controller,publish等目錄平級(jí):

app/app.manifest

app.manifest文件的格式與w3c規(guī)定的manifest文件格式一致,見(jiàn):http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html

注意:目前暫不支持SETTINGS:域

一個(gè)示例:

  1. CACHE MANIFEST 
  2. # the above line is required 
  3.  
  4. # this is a comment 
  5. # there can be as many of these anywhere in the file 
  6. # they are all ignored 
  7.   # comments can have spaces before them 
  8.   # but must be alone on the line 
  9.  
  10. # blank lines are ignored too 
  11.  
  12. # these are files that need to be cached they can either be listed 
  13. # first, or a "CACHE:" header could be put before them, as is done 
  14. # lower down. 
  15. images/sound-icon.png 
  16. images/background.png 
  17. # note that each file has to be put on its own line 
  18.  
  19. # here is a file for the online whitelist -- it isn't cached, and 
  20. # references to this file will bypass the cache, always hitting the 
  21. # network (or trying to, if the user is offline). 
  22. NETWORK: 
  23. comm.cgi 
  24.  
  25. # here is another set of files to cache, this time just the CSS file. 
  26. CACHE: 
  27. style/default.css 

 

責(zé)任編輯:張葉青
相關(guān)推薦

2013-10-30 22:50:30

Clouda結(jié)構(gòu)

2013-10-31 11:04:03

Cloudapackage.js

2014-05-15 09:43:11

CloudaMobile WebANodejs

2013-10-31 09:51:10

CLouda結(jié)構(gòu)

2013-10-30 22:41:23

Clouda環(huán)境

2013-10-31 10:59:41

Clouda使用

2013-10-31 22:53:58

Clouda程序

2013-11-04 17:38:09

Clouda百度

2013-10-30 17:34:22

Clouda安裝使用

2013-10-31 13:47:23

CloudaAPI

2013-10-31 14:30:44

CloudaAPI

2013-10-08 10:22:14

2013-10-31 15:12:57

CloudaAPI

2013-10-31 15:32:29

CloudaApp

2013-10-31 15:27:25

CloudaApp

2013-10-28 09:53:26

Clouda杏樹(shù)林

2013-10-31 14:55:22

2013-10-31 15:29:47

CloudaApp

2013-08-23 17:12:07

百度WebApp開(kāi)發(fā)框架

2013-10-30 22:10:28

Clouda程序
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)