<title>jQuery UI 进度条(Progressbar) - 不确定的值</title>
<link rel="stylesheet" href="/css/jqu1.10.4/jquery-ui.min.css">
<script src="/js/jqu/jquery.min1.10.2.js"></script>
<script src="/js/jqu/jquery-ui.min1.10.4.js"></script>
<link rel="stylesheet" href="jqueryui/style.css">
$( "#progressbar" ).progressbar({
$( "button" ).on( "click", function( event ) {
var target = $( event.target ),
progressbar = $( "#progressbar" ),
progressbarValue = progressbar.find( ".ui-progressbar-value" );
if ( target.is( "#numButton" ) ) {
progressbar.progressbar( "option", {
value: Math.floor( Math.random() * 100 )
} else if ( target.is( "#colorButton" ) ) {