thinkphp 3.2.3 和 jquery uploadify的问题

浏览:873 发布日期:2015/12/13 分类:求助交流 关键字: jquery-upladify thinkphp
if (!$upload) {
    echo json_encode(array(
        'status' => 0,
        'msg' => '上传失败'
    ));
} else {
    ...
    echo json_encode(array(
        'status' => 1,
        'path' => array(
            'max' => $data['face160'],
            'medium' => $data['face80'],
            'mini' => $data['face50'],
        ))
    );
}
我的js代码console.log(data);
data = JSON.parse(data);
在console.log 打印 data 页面的调试信息也跟着回到了 data 里面
大概是这样的
{"status":1,"path":{"max":"50_bc.jpg","medium":"80_bc.jpg","mini":"160_bc.jpg"}}<div id="think_page_trace" style="position: fixed;bottom:0;right:0;font-size:14px;width:100%;z-index: 999999;color: #000;text-align:left;font-family:'微软雅黑';">
<div id="think_page_trace_tab" style="display: none;background:white;margin:0;height: 250px;">
<div id="think_page_trace_tab_tit" style="height:30px;padding: 6px 12px 0;border-bottom:1px solid #ececec;border-top:1px solid #ececec;font-size:16px">
<span style="color:#000;padding-right:12px;height:30px;line-height: 30px;display:inline-block;margin-right:3px;cursor: pointer;font-weight:700">基本</span>
<span style="color:#000;padding-right:12px;height:30px;line-height: 30px;display:inline-block;margin-right:3px;cursor: pointer;font-weight:700">文件</span>
<span style="color:#000;padding-right:12px;height:30px;line-height: 30px;display:inline-block;margin-right:3px;cursor: pointer;font-weight:700">流程</span>
最佳答案
评论( 相关
后面还有条评论,点击查看>>