| qiaowei | f044a74 | 2019-07-10 16:04:20 +0800 | [diff] [blame] | 1 | var app = { |
| 2 | |||||
| 3 | // Application Constructor | ||||
| 4 | initialize: function() { | ||||
| 5 | document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); | ||||
| 6 | }, | ||||
| 7 | |||||
| 8 | onDeviceReady: function() { | ||||
| 9 | this.receivedEvent('deviceready'); | ||||
| 10 | var uid = window.localStorage.getItem("uid"); | ||||
| 11 | |||||
| 12 | }, | ||||
| 13 | |||||
| 14 | // Update DOM on a Received Event | ||||
| 15 | receivedEvent: function(id) { | ||||
| 16 | |||||
| 17 | } | ||||
| 18 | }; | ||||
| 19 | app.initialize(); | ||||