Zend Framework教程之Zend_Layout布局助手详解

前端之家收集整理的这篇文章主要介绍了Zend Framework教程之Zend_Layout布局助手详解前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文实例讲述了Zend Framework教程之Zend_Layout布局助手。分享给大家供大家参考,具体如下:

一、作用

布局的作用和模版的作用类似。可以认为是把网站通用、公共的部分拿出来作为通用的页面框架。例如一个基本的web页面,可能页面的头和尾都是一样,不一样的可能只是内容body部分不一样,可以把公共的部分做成模版。不仅可以提高开发效率,也为后期的维护带来方便。

二、使用

这里举一个简单的例子。

首先用zend studio创建一个基本的zend framework项目:layout_demo1

结构大概如下“

├─.settings ├─application │ ├─configs │ ├─controllers │ ├─models │ └─views │ ├─helpers │ └─scripts │ ├─error │ └─index ├─docs ├─library ├─public └─tests ├─application │ └─controllers └─library

1.加入layout功能

应用配置文件/layout_demo2/application/configs/application.ini,加入如下配置

2.相应的目录和布局模版文件

/layout_demo2/application/layouts/scripts/layout.phtml

├─application │ ├─configs │ ├─controllers │ ├─layouts │ │ └─scripts │ ├─models │ └─views

layout.html类似如下:

<Meta http-equiv="Content-Type" content="text/html;charset=utf-8"> my app@H_<a href="/tag/403/" target="_blank" class="keywords">403</a>_40@ <body> <div id="header"> header </div> <div id="content"> <?php echo $this -> layout() -> content;?> </div> <div id="footer"> header </div> </body> </html> </pre> </div> <p>这里的</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php echo $this -> layout() -> content;?> </pre> </div> <p>是比较重要的。表示此处为布局的<a href="/tag/neirong/" target="_blank" class="keywords">内容</a>,也就是会动态变化的地方。</p> <p>这样,运行一下程序</p> <p>www.localzend.com/layout_demo1/public/</p> <p><a href="/tag/shengcheng/" target="_blank" class="keywords">生成</a>的html源码如下</p> <div class="jb51code"> <pre class="brush:xhtml;"> <!doctype html> <html> <head> <<a href="/tag/Meta/" target="_blank" class="keywords">Meta</a> http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>my app@H_<a href="/tag/403/" target="_blank" class="keywords">403</a>_40@ <body> <div id="header"> header </div> <div id="content"> <style> a:link,a:visited { color: #0398CA; } span#zf-name { color: #91BE3F; } div#welcome { color: #FFFFFF; background-image: url(http://framework.zend.com/images/bkg_header.jpg); width: 600px; height: 400px; border: 2px solid #444444; overflow: hidden; text-align: center; } div#more-information { background-image: url(http://framework.zend.com/images/bkg_body-bottom.gif); height: 100%; } </style> <div id="welcome"> <h1>Welcome to the <span id="zf-name">Zend Framework!</span></h1> <h3>This is your project's main page</h3> <div id="more-information"> <p><p class="pic_center"><img src="http://framework.zend.com/images/PoweredBy_ZF_4LightBG.png" /></p></p> <p> Helpful Links: <br /> <a href="http://framework.zend.com/">Zend Framework Website</a> | <a href="http://framework.zend.com/manual/en/">Zend Framework Manual</a> </p> </div> </div> </div> <div id="footer"> header </div> </body> </html> </pre> </div> <p>中间部分就是/layout_demo1/application/views/scripts/index/index.phtml的<a href="/tag/neirong/" target="_blank" class="keywords">内容</a>。</p> <p>注入:可以通过zf的命令工具<a href="/tag/zidong/" target="_blank" class="keywords">自动</a><a href="/tag/shengcheng/" target="_blank" class="keywords">生成</a>layout的配置和<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>。</p> <p>命令如下:</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> zf enable layout </pre> </div> <p>可以参考命令行章节</p> <p><h3>三、配置</h3></p> <p>1.<a href="/tag/zidingyi/" target="_blank" class="keywords">自定义</a>存放位置和<a href="/tag/mingcheng/" target="_blank" class="keywords">名称</a>可以通过application.ini<a href="/tag/peizhiwenjian/" target="_blank" class="keywords">配置文件</a>配置布局<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>的存放位置以及布局<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a>的<a href="/tag/mingcheng/" target="_blank" class="keywords">名称</a>,例如:</p> <div class="jb51code"> <pre class="brush:bash;"> resources.layout.layoutPath = APPLICATION_PATH "/mylayouts/scripts" resources.layout.layout = "mylayout" </pre> </div> <p>2.在action中使用layout对象</p> <p>可以通过</p> <div class="jb51code"> <pre class="brush:php;"> $layout = $this->_helper->layout(); </pre> </div> <p>或者</p> <div class="jb51code"> <pre class="brush:php;"> $helper = $this->_helper->getHelper('Layout'); $layout = $helper->getLayoutInstance(); </pre> </div> <p><a href="/tag/huoqu/" target="_blank" class="keywords">获取</a>布局对象。</p> <p>可以通过如下方式禁用当前action使用布局模式</p> <div class="jb51code"> <pre class="brush:php;"> $layout->disableLayout(); </pre> </div> <p>可以通过</p> <div class="jb51code"> <pre class="brush:php;"> $layout->setLayout('other'); </pre> </div> <p>来设置使用另一个布局<a href="/tag/wenjian/" target="_blank" class="keywords">文件</a></p> <p>可以通过来传递赋值</p> <div class="jb51code"> <pre class="brush:php;"> $layout->assign('headertitle','app title'); $layout->somekey = "value" </pre> </div> <p>3.其它<a href="/tag/huoqu/" target="_blank" class="keywords">获取</a>layout对象的<a href="/tag/fangfa/" target="_blank" class="keywords">方法</a></p> <p>(1)</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> $layout = Zend_Layout::getMvcInstance(); </pre> </div> <p>(2)</p> <div class="jb51code"> <pre class="brush:php;"> $layout = $bootstrap->getResource('Layout'); </pre> </div> <p><h3>四、其它<a href="/tag/yongfa/" target="_blank" class="keywords">用法</a>,实现原理</h3></p> <p>具体其它的使用<a href="/tag/fangfa/" target="_blank" class="keywords">方法</a>可以参考</p> <p>Zend_Layout_Controller_Action_Helper_Layout类, Zend_Layout_Controller_Plugin_Layout类 Zend_View_Helper_Layout类 不言自明。</p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php /** Zend_Controller_Action_Helper_Abstract */ require_once 'Zend/Controller/Action/Helper/Abstract.php'; /** * Helper for interacting with Zend_Layout objects * * @uses Zend_Controller_Action_Helper_Abstract * @category Zend * @package Zend_Controller * @subpackage Zend_Controller_Action * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Layout_Controller_Action_Helper_Layout extends Zend_Controller_Action_Helper_Abstract { /** * @var Zend_Controller_Front */ protected $_frontController; /** * @var Zend_Layout */ protected $_layout; /** * @var bool */ protected $_isActionControllerSuccessful = false; /** * Constructor * * @param Zend_Layout $layout * @return void */ public function __construct(Zend_Layout $layout = null) { if (null !== $layout) { $this->setLayoutInstance($layout); } else { /** * @see Zend_Layout */ require_once 'Zend/Layout.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'; $layout = Zend_Layout::getMvcInstance(); } if (null !== $layout) { $pluginClass = $layout->getPluginClass(); $front = $this->getFrontController(); if ($front->hasPlugin($pluginClass)) { $plugin = $front->getPlugin($pluginClass); $plugin->setLayoutActionHelper($this); } } } public function init() { $this->_isActionControllerSuccessful = false; } /** * Get front controller instance * * @return Zend_Controller_Front */ public function getFrontController() { if (null === $this->_frontController) { /** * @see Zend_Controller_Front */ require_once 'Zend/Controller/Front.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'; $this->_frontController = Zend_Controller_Front::getInstance(); } return $this->_frontController; } /** * Get layout object * * @return Zend_Layout */ public function getLayoutInstance() { if (null === $this->_layout) { /** * @see Zend_Layout */ require_once 'Zend/Layout.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'; if (null === ($this->_layout = Zend_Layout::getMvcInstance())) { $this->_layout = new Zend_Layout(); } } return $this->_layout; } /** * Set layout object * * @param Zend_Layout $layout * @return Zend_Layout_Controller_Action_Helper_Layout */ public function setLayoutInstance(Zend_Layout $layout) { $this->_layout = $layout; return $this; } /** * Mark Action Controller (according to this plugin) as Running successfully * * @return Zend_Layout_Controller_Action_Helper_Layout */ public function postDispatch() { $this->_isActionControllerSuccessful = true; return $this; } /** * Did the prev<a href="/tag/IoU/" target="_blank" class="keywords">IoU</a>s action successfully complete? * * @return bool */ public function isActionControllerSuccessful() { return $this->_isActionControllerSuccessful; } /** * Strategy pattern; call object as method * * Returns layout object * * @return Zend_Layout */ public function direct() { return $this->getLayoutInstance(); } /** * Proxy method calls to layout object * * @param string $method * @param array $args * @return mixed */ public function __call($method,$args) { $layout = $this->getLayoutInstance(); if (method_exists($layout,$method)) { return call_user_func_array(array($layout,$method),$args); } require_once 'Zend/Layout/Exception.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'; throw new Zend_Layout_Exception(sprintf("Invalid method '%s' called on layout action helper",$method)); } } </pre> </div> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php /** Zend_Controller_Plugin_Abstract */ require_once 'Zend/Controller/Plugin/Abstract.php'; /** * Render layouts * * @uses Zend_Controller_Plugin_Abstract * @category Zend * @package Zend_Controller * @subpackage Plugins * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id: Layout.php 23775 2011-03-01 17:25:24Z ralph $ */ class Zend_Layout_Controller_Plugin_Layout extends Zend_Controller_Plugin_Abstract { protected $_layoutActionHelper = null; /** * @var Zend_Layout */ protected $_layout; /** * Constructor * * @param Zend_Layout $layout * @return void */ public function __construct(Zend_Layout $layout = null) { if (null !== $layout) { $this->setLayout($layout); } } /** * Retrieve layout object * * @return Zend_Layout */ public function getLayout() { return $this->_layout; } /** * Set layout object * * @param Zend_Layout $layout * @return Zend_Layout_Controller_Plugin_Layout */ public function setLayout(Zend_Layout $layout) { $this->_layout = $layout; return $this; } /** * Set layout action helper * * @param Zend_Layout_Controller_Action_Helper_Layout $layoutActionHelper * @return Zend_Layout_Controller_Plugin_Layout */ public function setLayoutActionHelper(Zend_Layout_Controller_Action_Helper_Layout $layoutActionHelper) { $this->_layoutActionHelper = $layoutActionHelper; return $this; } /** * Retrieve layout action helper * * @return Zend_Layout_Controller_Action_Helper_Layout */ public function getLayoutActionHelper() { return $this->_layoutActionHelper; } /** * postDispatch() plugin hook -- render layout * * @param Zend_Controller_Request_Abstract $request * @return void */ public function postDispatch(Zend_Controller_Request_Abstract $request) { $layout = $this->getLayout(); $helper = $this->getLayoutActionHelper(); // Return early if forward detected if (!$request->isDispatched() || $this->getResponse()->isRedirect() || ($layout->getMvcSuccessfulActionOnly() && (!empty($helper) && !$helper->isActionControllerSuccessful()))) { return; } // Return early if layout has been disabled if (!$layout->isEnabled()) { return; } $response = $this->getResponse(); $content = $response->getBody(true); $contentKey = $layout->getContentKey(); if (isset($content['default'])) { $content[$contentKey] = $content['default']; } if ('default' != $contentKey) { unset($content['default']); } $layout->assign($content); $fullContent = null; $obStartLevel = ob_get_level(); try { $fullContent = $layout->render(); $response->setBody($fullContent); } catch (Exception $e) { while (ob_get_level() > $obStartLevel) { $fullContent .= ob_get_clean(); } $request->setParam('layoutFullContent',$fullContent); $request->setParam('layoutContent',$layout->content); $response->setBody(null); throw $e; } } } </pre> </div> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php /** Zend_View_Helper_Abstract.php */ require_once 'Zend/View/Helper/Abstract.php'; /** * View helper for retrieving layout object * * @package Zend_View * @subpackage Helper * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_View_Helper_Layout extends Zend_View_Helper_Abstract { /** @var Zend_Layout */ protected $_layout; /** * Get layout object * * @return Zend_Layout */ public function getLayout() { if (null === $this->_layout) { require_once 'Zend/Layout.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'; $this->_layout = Zend_Layout::getMvcInstance(); if (null === $this->_layout) { // Implicitly creates layout object $this->_layout = new Zend_Layout(); } } return $this->_layout; } /** * Set layout object * * @param Zend_Layout $layout * @return Zend_Layout_Controller_Action_Helper_Layout */ public function setLayout(Zend_Layout $layout) { $this->_layout = $layout; return $this; } /** * Return layout object * * Usage: $this->layout()->setLayout('alternate'); * * @return Zend_Layout */ public function layout() { return $this->getLayout(); } } </pre> </div> <p>更多关于zend相关<a href="/tag/neirong/" target="_blank" class="keywords">内容</a>感兴趣的读者可查看本站专题:《<a target="_blank" href="//www.jb51.cc/Special/546.htm">Zend FrameWork框架入门教程</a>》、《<a target="_blank" href="//www.jb51.cc/Special/155.htm">php优秀开发框架总结</a>》、《<a target="_blank" href="//www.jb51.cc/Special/386.htm">Yii框架入门及常用技巧总结</a>》、《<a target="_blank" href="//www.jb51.cc/Special/39.htm">ThinkPHP入门教程</a>》、《<a target="_blank" href="//www.jb51.cc/Special/43.htm">php面向对象程序设计入门教程</a>》、《<a target="_blank" href="//www.jb51.cc/Special/84.htm">php+mysql数据库操作入门教程</a>》及《<a target="_blank" href="//www.jb51.cc/Special/231.htm"><a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>常见<a href="/tag/shujuku/" target="_blank" class="keywords">数据库</a>操作技巧汇总</a>》</p> <p>希望本文所述对大家<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>程序设计有所帮助。</p></div> <div class="topcard-tags"><a href="/tag/Framework/" class="tag_link" target="_blank">Framework</a><a href="/tag/Zend/" class="tag_link" target="_blank">Zend</a><a href="/tag/ZendLayout/" class="tag_link" target="_blank">Zend_Layout</a><a href="/tag/buju/" class="tag_link" target="_blank">布局</a><a href="/tag/bujup/" class="tag_link" target="_blank">布局</a><a href="/tag/pbuju/" class="tag_link" target="_blank">布局</a></div> <ul class="list-group"> <li class="list-group-item"><a href="/php/20285.html" title="php mailer类调用远程SMTP服务器发送邮件实现方法">上一篇:php mailer类调用远程SMTP服务器发</a><a href="/php/20283.html" title="Zend Framework教程之模型Model基本规则和使用方法" class="text-muted pull-right">下一篇:Zend Framework教程之模型Model基本</a> </li> </ul> </div> </div> </div> <!-- row end --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4605373693034661" data-ad-slot="9144498553"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> </div> </div> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <div class="title"><h1>猜你在找的PHP相关文章</h1></div> <div class="list_con"> <a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/361df348b2385424b031f281e9807f35.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Hessian通讯协议【附PHP源代码】</div> <div class="summary">Hessian开源的远程通讯,采用二进制 RPC的协议,基于 HTTP 传输。可以实现PHP调用Java,Pyt...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997739.html" title="初识Mongodb总结"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/b4d39ef6acdce4fc3ef2fe713961a4c2.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb总结</div> <div class="summary">初识Mongodb的一些总结,在Mac Os X下真实搭建mongodb环境,以及分享个Mongodb管理工具,学习...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/d009a8111c246e74506457f4b9a3356b.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb之[CURD]-PHP版</div> <div class="summary">边看边操作,这样才能记得牢,实践是检验真理的唯一标准.光看不练假把式,光练不看傻把式,边看...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997665.html" title="php学习日志 - echo&print"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/daa4210b68d9838740e9ea77a21307fa.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">php学习日志 - echo&print</div> <div class="summary">在php中,结果输出一共有两种方式:echo和print,下面将对两种方式做一个比较。 echo与pri...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/eb187c62ac0c80d6e2af301e5b85d7cf.jpg" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">The mbstring extension is missing. Please check your PHP configuration错误及解决方法</div> <div class="summary">在安装好wampServer后,一直没有使用phpMyAdmin,今天用了一下,phpMyAdmin显示错误:The m...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><div class="list_con"> <a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/3dba7c0e337113c18e0d271e31375f92.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常</div> <div class="summary">以前用Windows Live Writer写日志都好好的,前几天用写完日志,点击发布,突然弹出意外错误...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统"><div class="title">在PHP项目中使用Standford Moss代码查重系统</div> <div class="summary">Standford Moss 系统是斯坦福大学大名鼎鼎的代码查重系统,它可以查出哪些同学提交的代码是...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997490.html" title="Windows下PHP安全环境的搭建"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-18/10/ae3043a3f014e5fde5c29d0449149db0.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Windows下PHP安全环境的搭建</div> <div class="summary">笔者一直在Windows环境下搭建PHP的运行环境,大大小小的运行环境用过不少,从开始的WAMP到...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息"><div class="title">ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息</div> <div class="summary">在作业管理系统中,学生登陆到个人中心后可以通过左侧的菜单查看自己已经提交的作业和未提...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997488.html" title="ThinkPHP5项目目录规划实践"><div class="title">ThinkPHP5项目目录规划实践</div> <div class="summary">ThinkPHP5安装后(或者下载后的压缩文件解压后)可以看到下面的目录结构: 一般的信息管理...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div> </div> </div> <!-- left end--> <!-- right --> <div class="col-sm-12 col-md-12 col-lg-3"> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">编程分类</label> <div class="cate mt-20"><a href="/php/" title="PHP">PHP</a><a href="/java/" title="Java">Java</a><a href="/javase/" title="Java SE">Java SE</a><a href="/python/" title="Python">Python</a><a href="/csharp/" title="C#">C#</a><a href="/c/" title="C&C++">C&C++</a><a href="/ruby/" title="Ruby">Ruby</a><a href="/vb/" title="VB">VB</a><a href="/aspnet/" title="asp.Net">asp.Net</a><a href="/go/" title="Go">Go</a><a href="/Perl/" title="Perl">Perl</a><a href="/netty/" title="netty">netty</a><a href="/django/" title="Django">Django</a><a href="/delphi/" title="Delphi">Delphi</a><a href="/jsp/" title="Jsp">Jsp</a><a href="/netcore/" title=".NET Core">.NET Core</a><a href="/spring/" title="Spring">Spring</a><a href="/flask/" title="Flask">Flask</a><a href="/springboot/" title="Springboot">Springboot</a><a href="/springmvc/" title="SpringMVC">SpringMVC</a><a href="/lua/" title="Lua">Lua</a><a href="/laravel/" title="Laravel">Laravel</a><a href="/mybatis/" title="Mybatis">Mybatis</a><a href="/asp/" title="Asp">Asp</a><a href="/groovy/" title="Groovy">Groovy</a><a href="/thinkphp/" title="ThinkPHP">ThinkPHP</a><a href="/yii/" title="Yii">Yii</a><a href="/swoole/" title="swoole">swoole</a><div class="clearfix"></div> </div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">最新文章</label> <ul class="n-list"><li><a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】" target="_blank">• Hessian通讯协议【附PHP源</a></li> <li><a href="/php/997739.html" title="初识Mongodb总结" target="_blank">• 初识Mongodb总结</a></li> <li><a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版" target="_blank">• 初识Mongodb之[CURD]-PHP版</a></li> <li><a href="/php/997665.html" title="php学习日志 - echo&print" target="_blank">• php学习日志 - echo&p</a></li> <li><a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法" target="_blank">• The mbstring extension i</a></li> <li><a href="/php/997663.html" title="php学习日志 - php变量" target="_blank">• php学习日志 - php变量</a></li> <li><a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常" target="_blank">• 解决Windows Live Writer错</a></li> <li><a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统" target="_blank">• 在PHP项目中使用Standford</a></li> <li><a href="/php/997490.html" title="Windows下PHP安全环境的搭建" target="_blank">• Windows下PHP安全环境的搭</a></li> <li><a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息" target="_blank">• ThinkPHP5作业管理系统中处</a></li> </ul> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">热门标签 <span class="pull-right tx-12"> <a href="/all" target="_blank">更多 ►</a></span> </label> <div class="topcard-tags"><a href="/tag/wenjianshijian/" title="文件时间" target="_blank">文件时间</a><a href="/tag/pythonm/" title="pythonm" target="_blank">pythonm</a><a href="/tag/xiangdengxing/" title="相等性" target="_blank">相等性</a><a href="/tag/PHPWarning/" title="PHP Warning" target="_blank">PHP Warning</a><a href="/tag/shijianwenti/" title="时间问题" target="_blank">时间问题</a><a href="/tag/wentijiejue/" title="问题解决" target="_blank">问题解决</a><a href="/tag/pcntlsignal/" title="pcntl_signal()" target="_blank">pcntl_signal</a><a href="/tag/caiyangdian/" title="采样点" target="_blank">采样点</a><a href="/tag/wavmokuai/" title="wav模块" target="_blank">wav模块</a><a href="/tag/dongtaiwenben/" title="动态文本" target="_blank">动态文本</a><a href="/tag/diaoyongpinlvxianzhi/" title="调用频率限制" target="_blank">调用频率限制</a><a href="/tag/duiwaibaolu/" title="对外暴露" target="_blank">对外暴露</a><a href="/tag/duogefangwenqingqiu/" title="多个访问请求" target="_blank">多个访问请求</a><a href="/tag/gengxinshujubiao/" title="更新数据表" target="_blank">更新数据表</a><a href="/tag/moxingjiegou/" title="模型结构" target="_blank">模型结构</a><a href="/tag/typefangfa/" title="type()方法" target="_blank">type()方法</a><a href="/tag/bijiaosudu/" title="比较速度" target="_blank">比较速度</a><a href="/tag/shouxieti/" title="手写体" target="_blank">手写体</a><a href="/tag/sobelsuanzi/" title="sobel算子" target="_blank">sobel算子</a><a href="/tag/baocunmoxing/" title="保存模型" target="_blank">保存模型</a><a href="/tag/Imagelei/" title="Image类" target="_blank">Image类</a><a href="/tag/nnConv2d/" title="nn.Conv2d" target="_blank">nn.Conv2d</a><a href="/tag/pytorch10/" title="pytorch1.0" target="_blank">pytorch1.0</a><a href="/tag/kaggle/" title="kaggle" target="_blank">kaggle</a><a href="/tag/DCGAN/" title="DCGAN" target="_blank">DCGAN</a><a href="/tag/jiaobingbi/" title="交并比" target="_blank">交并比</a><a href="/tag/rangeyongfa/" title="range()用法" target="_blank">range()用法</a><a href="/tag/dayinmoxing/" title="打印模型" target="_blank">打印模型</a><a href="/tag/fanjuanji/" title="反卷积" target="_blank">反卷积</a><a href="/tag/juanji/" title="卷积" target="_blank">卷积</a></div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> </div> <!-- right end --> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-6 site-link"> <dt>最近更新</dt><dd><a href="/win11/1005328.html" title="小米手机重装系统价格多少?专业维修服务详解" target="_blank">· 小米手机重装系统价格多少?专业维修服务详解</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005327.html" title="手把手教你重装电脑系统,让你的电脑焕然一新!" target="_blank">· 手把手教你重装电脑系统,让你的电脑焕然一新!</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005326.html" title="教你一步步重装XP系统,让你的电脑重获新生" target="_blank">· 教你一步步重装XP系统,让你的电脑重获新生</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005325.html" title="从备份到上网:一步步教你重装电脑系统" target="_blank">· 从备份到上网:一步步教你重装电脑系统</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005324.html" title="Sony笔记本电脑一键重装系统详细图文教程" target="_blank">· Sony笔记本电脑一键重装系统详细图文教程</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005323.html" title="Lenovo笔记本重装系统超详细教程,小白也能轻松上手" target="_blank">· Lenovo笔记本重装系统超详细教程,小白也能轻松...</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005322.html" title="联想笔记本一键重装Win10系统详细教程" target="_blank">· 联想笔记本一键重装Win10系统详细教程</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005321.html" title="电脑系统故障无需愁,专业维修店帮你重装旧貌换新颜" target="_blank">· 电脑系统故障无需愁,专业维修店帮你重装旧貌换新...</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005320.html" title="联想笔记本一键重装Win10系统图文教程,小白也能轻松搞定!" target="_blank">· 联想笔记本一键重装Win10系统图文教程,小白也能...</a><span class="text-muted pull-right">02-05</span></dd> <dd><a href="/win11/1005319.html" title="笔记本重装系统图文教程:从光盘启动一步到位" target="_blank">· 笔记本重装系统图文教程:从光盘启动一步到位</a><span class="text-muted pull-right">02-05</span></dd> </dl> <dl class="col-sm-4 site-link"> <dt>好站推荐</dt><dd> <a href="https://www.runoob.com" title="菜鸟教程(www.runoob.com)提供了编程的基础技术教程, 介绍了HTML、CSS、Javascript、Python,Java,Ruby,C,PHP , MySQL等各种编程语言的基础知识。 同时本站中也提供了大量的在线实例,通过实例,您可以更好的学习编程。" target="_blank">菜鸟教程</a></dd><dd> <a href="https://www.jb51.cc" title="编程之家(www.jb51.cc)是成立于2017年面向全球中文开发者的技术内容分享平台。提供编程导航、编程问答、编程博文、编程百科、编程教程、编程工具、编程实例等开发者最需要的编程技术内容与开发工具支持,与你一起学习编程,相信编程改变未来!" target="_blank">编程之家</a></dd><dd> <a href="" title="前端之家 f2er.com 前端开发人员所需学习知识手册。" target="_blank">前端之家</a></dd></dl> <dl class="col-sm-2 site-link"> <dt>商务合作</dt> <dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=76874919&site=qq&menu=yes">联系我们</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 前端之家. 当前版本 V7.0.16<br> <span class="ml5">前端之家 版权所有 <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">闽ICP备13020303号-10</a></span> </div> </div> </footer> <script type="text/javascript" src="/js/base.js"></script> </body> </html>