Jquery进度条没有显示出来

时间:2013-07-25 16:45:02

标签: php jquery progress-bar

我在php文件中有jquery脚本:

print "<link rel=\"stylesheet\" href=\"http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\" />                                                                                                       
 <script src=\"http://code.jquery.com/ui/1.10.3/jquery-ui.js\"></script>                                                                                                                                          
<link rel=\"stylesheet\" href=\"/resources/demos/style.css\" />";


print "<script>                                                                                                                                                                                                  
 $(function() {                                                                                                                                                                                                   
 $( \"#p\" ).progressbar({ max: 10 });                                                                                                                                                                              
 $( \"#p\" ).progressbar({                                                                                                                                                                                          
 value:" . $_SESSION['pagenum'] . "});                                                                                                                                                                              
 $( '#p' ).progressbar( 'enable' );                                                                                                                                                                                 
 });                                                                                                                                                                                                            
 </script>";

我的html看起来像这样:

print "<div id = 'p'></div>";

但进度条没有显示出来。我打印会话变量,所以我知道它退出。进度条没有发生的原因是什么? 谢谢!

0 个答案:

没有答案
相关问题