var export={};有錯(cuò)呢
(function(){ var _userId=2334; var _typeId="item";var export={}; function converter(userId){return +userId;} function getUserId(){return converter(_userId);} function getTypeId(){return converter(_typeId);} window.export=export; }()); alert( export.getUserId() );怎么提示 ?var export={};有錯(cuò)呢
2015-12-12
(function(){
? var _userId = 23492;
? var _typeId = 'item';
? var export1? = {};
?
? function converter(userId){
??? return +userId;
?? ?
? }
?
? export1.getUserId = function(){
??? return converter(_userId);
? }
? export1.getTypeId=function(){
??? return _typeId;
? }
? window.export=export1;
}());
?window.export.getUserId();
?window.export.getTypeId();
? window.export._userId;
?window.export._typeId;
?window.export.converter;
?
export報(bào)錯(cuò)提示是這個(gè)單詞是個(gè)關(guān)鍵字。改成如上所示即可。
2015-11-20
export報(bào)錯(cuò)提示是這個(gè)單詞是個(gè)關(guān)鍵字。
2015-11-05
(function(){
var _userId=2334;
var _typeId="item";
var export={};
function converter(userId){
return +userId;
}
function getUserId(){
return converter(_userId);
}
function getTypeId(){
return converter(_typeId);
}
window.export=export;
}());
alert( export.getUserId() );
}
這里怎么有錯(cuò)誤呢