52,797
社区成员
发帖
与我相关
我的任务
分享
function showAttachDialog(obj) {
var objNum = arguments.length;
var attachDialog = top.dialog({
id: 'attachDialogId',
title: "上传附件",
url: 'dialog/dialog_attach.aspx?id='+obj,/////////增加参数
width: 500,
height: 180,
onclose: function () {
var liHtml = this.returnValue; //获取返回值
if (liHtml.length > 0) {
$("#showAttachList").children("ul").append(liHtml);
}
}
}).showModal();
//如果是修改状态,将对象传进去
//不懂你这个是干什么的,注释掉了。如果你这个插件附加数据时通过对象的data属性添加的,自己好好看下api
/*if (objNum == 1) {
attachDialog.data = obj;
}*/
}