Extjs中app.js文件中的onUpdated函数什么时候执行
2016-09-18 16:00
423 查看
官方原版答案是:
As a short explanation: ‘onUpdated’ is triggered after either, or both of the following cases happen:
Your application’s HTML 5 manifest file (cache.manifest) changes. Read more on HTML 5 app cache if you’re new to this feature. Since cache.manifest is generated automatically, it contains the checksum values of all managed assets. As you modify the content of index.html file or any other file listed in the ‘appCache’ config inside app.json, their checksum values change -> the content of cache.manifest changes.
You have changes in any of your JavaScript or CSS assets listed in the “js” and “css” config inside app.json. Similarly to cache.manifest, when you build your application for production, a production version of app.json is generated automatically. This file contains checksums for all assets. By comparing the latest checksum values with the ones locally stored inside Local Storage, the app knows exactly what file has changed, and pull down the delta for that item, then patch its local copy to make it identical to the latest one.
经过亲自测试后发现:
如果更改了app.json中列出的文件,例如index.html,然后重新sencha app build
当再次打开系统时,该函数就会被执行。
As a short explanation: ‘onUpdated’ is triggered after either, or both of the following cases happen:
Your application’s HTML 5 manifest file (cache.manifest) changes. Read more on HTML 5 app cache if you’re new to this feature. Since cache.manifest is generated automatically, it contains the checksum values of all managed assets. As you modify the content of index.html file or any other file listed in the ‘appCache’ config inside app.json, their checksum values change -> the content of cache.manifest changes.
You have changes in any of your JavaScript or CSS assets listed in the “js” and “css” config inside app.json. Similarly to cache.manifest, when you build your application for production, a production version of app.json is generated automatically. This file contains checksums for all assets. By comparing the latest checksum values with the ones locally stored inside Local Storage, the app knows exactly what file has changed, and pull down the delta for that item, then patch its local copy to make it identical to the latest one.
经过亲自测试后发现:
如果更改了app.json中列出的文件,例如index.html,然后重新sencha app build
当再次打开系统时,该函数就会被执行。
相关文章推荐
- CWinApp::OnFileOpen函数按照先后次序具体执行了哪些行为
- class-dump,分析可执行/app文件的函数定义
- 关于。js文件------内部函数的执行
- js离开页面执行函数 onbeforeunload与onunload事件
- js离开页面执行函数 onbeforeunload与onunload事件
- js离开页面执行函数 onbeforeunload与onunload事件
- 输出JS链接文件再执行
- C# 程序找出文件重复的行,计算函数执行的时间
- js:window.onload事件 让一个js事件执行多个函数
- C#执行js中的函数的问题,以sohu邮箱登陆密码js的MD5为例
- 输出JS链接文件再执行
- 困兽之斗!使用JavaScript执行客户端的exe文件(excute the .exe file on client-side machine by JavaScript)
- C#利用反射实现(js)Eval,asp(Execute)功能 动态执行类库中的函数
- javascript延时重复执行函数 lLoopRun.js
- javascript延时重复执行函数 lLoopRun.js
- 用js计算页面执行时间的函数
- Js文件中调用其它Js函数的方法
- Iframe外执行所包含的iframe中的JS函数的方法
- 动态加载JS文件,完美解决跨域、编码、嵌套、队列、兼容性、执行顺序等相关问题。
- JS中,执行字符串的函数