我有这个代码:
var getValuesArray = [];
var setValuesArray = [];
function SetValueJson(key, value, scormVersion, methodCalled)
{
if (key1 != null) {
var obj = {
key: key1,
value: value1
}
setValuesArray.push(obj);
alert("pushing the key as: " + setValuesArray[key] + " and value as: " + setValuesArray[key].value); //not shure how te reference it?
return value;
}
和:
function GetValueJson(key, scormVersion, methodCalled) {
//I will get to this later, want to get the array right first
}
如何引用数组?alert("将键按为:" + setValuesArray[key] +" 和值作为:" + setValuesArray[key].value); 是不正确的..
谢谢