日期:2014-05-17  浏览次数:20931 次

java 在后台放一个数组到request中,怎么在js中获取到这个数组
JScript code

 line4 = [25, 12.5, 6.25, 3.125]; 
        plot4 = $.jqplot('chart4', [line4], { 
            legend:{show:true, location:'ne'}, 
            title:'Log Y Axis, Even Tick Distribution', 
            series:[{label:'Declining line'}], 
            axes:{
                xaxis:{min:0, max:5}, 
                yaxis:{min:1, max:64, renderer:$.jqplot.LogAxisRenderer}
            }
        });


line4 = [25, 12.5, 6.25, 3.125];是需要获取的格式!

------解决方案--------------------
在页面创建一个隐藏域,把数组给他赋上值 用JS 去他的值