使用‘新’关键字作为‘静态’的Javascript函数表达式是正确的吗?
gameData
var gameData = new function () {
//May need this later
this.init = function () {
};
this.storageAvailable = function () {
if (typeof (Storage) !== "undefined") {
return true;
}
else {
return false;
}
};}慕妹3242003
largeQ
相关分类