Html5页面传值打印出来为什么全是object?

var url = '/plus/camera_image.html';
var w = plus.webview.create(url,url,{hardwareAccelerated:true,scrollIndicator:'none',scalable:true,bounce:'all',test:"test"});
w.addEventListener('loaded',function(){
w.evalJS('loadMedia("'+hashMap.get(id1)+'","'+photoPosi+'","'+photoAll[woIndex]+'")');
},false);
w.show('pop-in');

                //photoAll[woIndex]是一个json值

                function loadMedia(src,aaa,photoAll){
document.getElementById('img').src=src;
document.getElementById('title').innerText=aaa;
alert(window.JSON.stringify(photoAll));

}

传递到第二个页面打印window.JSON.stringify(photoAll) 值是“[object Object]”
为什么?

用console.log()打印不就得了。

window.JSON.stringify(photoAll) 其中的photoAlL 是一个对象吧 不是单纯的值。

非基础类型的,都不要用alert ,使用console.log()更利于调试.对象也能清楚的展示出来

使用console.log()