$.ajax({
type: "post",
url: "__MODULE__/Index/kline",
data : "product=meiyuanzhishu" +"&min="+5, //注意这里必须用=
async: false,
success: function (data) {
console.log(data);
//直接填写数据是正确的
data0 = splitData([['20:30',94.183,94.197,94.179,94.205],['20:35',94.201,94.131,94.129,94.201],['20:40',94.137,94.158,94.117,94.164],['20:45',94.157,94.155,94.141,94.166],['20:50',94.155,94.112,94.107,94.163],['20:55',94.115,94.079,94.07,94.115],['21:00',94.077,94.128,94.074,94.128],['21:05',94.125,94.129,94.11,94.132],['21:10',94.129,94.144,94.111,94.15],['21:15',94.147,94.138,94.132,94.153],['21:20',94.138,94.149,94.128,94.155],['21:25',94.149,94.116,94.116,94.155],['21:30',94.124,94.11,94.104,94.128],['21:35',94.11,94.104,94.096,94.113],['21:40',94.109,94.133,94.107,94.134],]);
}
});
但是这样 书写data
data是一样的,为什么会报错,是因为数据类型不一样?、
大话西游666
相关分类