JQurey动态创建dialog 使用modal :true; 会在页面自动添加滚动条 能不能去掉;好纠结这个滚动条会影响页面样式!!
$('#createModelTemplate').dialog({
modal : true,
background : ['white'],
width : 500,
height : 200,
position: ['top','right'],
buttons : [ {
text : '确定',
click : function() {
if (!$('#name').val()) {
alert('请填写名称!');
$('#name').focus();
return;
}
setTimeout(function() {
location.reload();
}, 1000);
$('#modelForm').submit();
}
} ]
});