function传参和dialog的问题

hb_dmgy 2017-04-21 05:14:47
function orderFilling_sortingrework(pageValue,place,disposition1,tenantid){
$('<div></div>').dialog({
id:'orderFilling_sortingrework',
title: '填写《挑选/返工通知单》',
iconCls:'icon-edit',
width: 380,
height: 'auto',
top:50,
cache: false,
modal: true,
href:'orderFillingSortingreworkDialog.html',
resizable:true,
closed:false,
closable:false,
onLoad : function() {
$("#program").textbox('textbox').bind({
blur: function () {
$(this).css({ height: 18 }).parent().css({ height: 'auto' });
},
focus: function () {
$(this).css({ height: 60 }).parent().css({ height: 'auto' });
}
})
$("#reinspection").textbox('textbox').bind({
blur: function () {
$(this).css({ height: 18 }).parent().css({ height: 'auto' });
},
focus: function () {
$(this).css({ height: 60 }).parent().css({ height: 'auto' });
}
})
if(pageValue==10){
$('#zytype').show();
}
if(place==6){
$('#sscs').show();
}
,
buttons:[{
text:'保存',
iconCls : 'icon-ok',
handler:saveOrderOrSort
},{
text:'取消',
iconCls : 'icon-undo',
handler:newDialogClose
}]
})


函数里参数(pageValue,place,disposition1,tenantid)不管怎么改,如果不刷新页面再调用此函数orderFilling_sortingrework,传过来的永远是第一次点击的那些参数,为什么会这样?
...全文
107 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hb_dmgy 2017-04-21
  • 打赏
  • 举报
回复
低级错误............................

87,993

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧