【发布时间】:2012-03-30 07:19:52
【问题描述】:
我想知道是否有人可以向我解释以下 Javascript 代码:
j1 = {};
j1.version = "0.0.1";
j1.port = "0";
j1.key = "DEFAULT_KEY"; //default random key
j1.requestID = 1000;
j1.setPort = function (port) {
this.port = port;
};
j1.setKey = function (key) {
this.key = key;
};
j1.onDeviceReady = function () {};
j1.onPushNotification = function (message) {};
j1.platform = {};
j1.platform.WINDOWS_PHONE = "WINDOWS_PHONE";
j1.platform.IOS = "IOS";
j1.platform.BLACKBERRY = "BLACKBERRY";
j1.platform.ANDROID = "ANDROID";
// Device
j1.device = {
name: "",
version: "",
platform: "",
uuid: "",
initDevice: function (deviceName, deviceVersion, devicePlatform, deviceUUID) {
this.name = deviceName;
this.version = deviceVersion;
this.platform = devicePlatform;
this.uuid = deviceUUID;
}
};
这是一种混合移动网络应用程序。
谢谢
sneha
【问题讨论】:
标签: javascript html webview