标签:
首先‘uploadify‘是必须引进的
HTML代码:
<div class="pms-color-lable">附件信息</div>
<div id="file_upload" style="margin-left:15%;"></div>
JS代码:
1.add界面:
var data = form.getData(true,true);
data.aprv.docId = data.hidden_doc_id;
2.list界面:(数据库中必须有docId这个字段)
url上+"&docId="+row.docId
3.修改和详情界面
success:function(text){
var modData = nui.decode(text);
debugger;
docId =modData.docId;
initUploadify("#file_upload","P09",docId);
标签:
原文地址:http://www.cnblogs.com/fenghua12/p/5281734.html