I have a data set as below:(我有一个数据集,如下所示:)
data = '{"a":1,"b":2,"c":3},{"a":4,"b":5,"c":6},{"a":7,"b":8,"c":9}';(数据='{“ a”:1,“ b”:2,“ c”:3},{“ a”:4,“ b”:5,“ c”:6},{“ a”:7, “ b”:8,“ c”:9}';)
I am trying to make a function with the data set as its parameter, but the parameter wouldn't be read.(我正在尝试使用数据集作为参数来创建函数,但不会读取该参数。) Here is what I did:(这是我所做的:)
function add(data) { alert(data);(功能add(data){alert(data);) } add(data);(} add(数据);)
I only get [object Object],[object Object] ... What's the problem here?(我只得到[object Object],[object Object] ...这是什么问题?) Thanks.(谢谢。)
ask by D Kim translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…