企业邮箱版本更新:微信动态密码,您的帐号可以更安全
- Get link
- X
- Other Apps
![]()
Popular posts from this blogjquery datatable插件
关于一些项目中使用管理面板,如果直接使用数据库表单插件,如传统的datatable控件,.net aspx的grid view,等等,便利性都是有目共睹. 现在想找在php或jquery的插件,以减少重复工作. 1.下载, 解压代码 如图: 2.参照里面的示例.我的代码如下: 页面包含css: <link href= "/s/ful/css/m/member/demo_page.css" media= "screen" rel= "stylesheet" type= "text/css" /> <link href= "/s/ful/css/m/member/demo_table.css" media= "screen" rel= "stylesheet" type= "text/css" /> <link href= "/s/ful/css/third/jquery-ui/jquery-ui.css" media= "screen" rel= "stylesheet" type= "text/css" /> <link href= "/s/ful/css/m/member/themes/smoothness/jquery-ui-1.7.2.custom.css" media= "screen" rel= "stylesheet" type= "text/css" /> 包含JS: <script type= "text/javascript" src= "/s/ful/js/third/jquery/jquery.min.js" ></script> <script type= "text/javascript" src= "/s/ful/js/third...
php speed up source - timing task
Todo: speed up php run. 加速您的WEB服务器吧.(自编自译) Do: change dynamic ajax request form to static file request. 1.cache control in web server 使用web服务器的缓存配置 (300 = 5 min,) 300 = 5 分钟 apache .htaccess Header set Cache-Control "max-age=300" iis web.config <?xml version= "1.0" encoding= "UTF-8" ?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name= "Cache-Control" value = "max-age=300" /> </customHeaders> </httpProtocol> </system.webServer> </configuration> 2.static file gzip compress 静态文件压缩 apache .htaccess <ifmodule mod_deflate.c> AddOutputFilter DEFLATE html htm xml js css </ifmodule> iis web.config <?xml version= "1.0" encoding= "UTF-8" ?> <system.webServer> <urlCompression doStaticCompression= "true" /> </...
yii php develop log – bootstrap TbThumbnails widget
1.screenshots: url: http://localhost/mw2/exam/exam/locale 2.code mw2\protected\modules\exam\views\exam\locale.php: <?php $ this ->widget( 'bootstrap.widgets.TbThumbnails' , array( 'dataProvider' => new CArrayDataProvider(Yii::app()->getModule( 'rss' )->getLocaleList()), 'template' => "{items}\n{pager}" , 'itemView' => '_localethumb' , )); ?> mw2\protected\modules\exam\views\exam\_localethumb.php: <li class = "span3" > <a href= "#" class = "thumbnail" rel= "<?php echo $data['country'] ?>" data-title= "<?php echo $data['country'] ?>" > <img src= "/s/images/flags/<?php echo $data['locale'] ?>.png" alt= "<?php echo $data['country'] ?>" > </a> </li> mw2\protected\modules\rss\RssModule.php: <?php class RssModu...
|
|---|

Comments