日期:2014-05-17 浏览次数:20566 次
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<div id="dialog" title="Basic dialog">
<input type="text" />
</div>
<script>
$("#dialog").dialog();
</script>
<button onclick="$('#dialog').dialog('open').find(':text').val(''); return false;">open dialog</button>