我有这个 JS:
function SetAPIValue(key1, value1, scormVersion, methodCalled) {
if (key1 == true || key1 == false) { }
else
{
alert("value1 = " + value1);
/* value1 came back with two values for cmi.suspend_data! */
var obj = {
key: key1,
value: value1
}
setValuesArray.push(obj);
}
不知何故 value1 包含 key1 的两个值,当我推送到我的数组时如何吐出它们以便每个值和键都在一行中?
谢谢