Home > Backend Development > PHP Tutorial > php框架 - thinkphp好慢 帮忙看看什么原因?已贴代码

php框架 - thinkphp好慢 帮忙看看什么原因?已贴代码

WBOY
Release: 2016-06-06 20:19:32
Original
1635 people have browsed it

2.9978s ( Load:0.0130s Init:0.0047s Exec:2.9360s Template:0.0441s )
吞吐率 : 0.33req/s
求解决方案

Exec是什么意思

<code><include file="./Application/Home/View/Common/head.html" title="书签分类"></include>
<include file="./Application/Home/View/Common/navbar.html"></include>

<style>
    .url-box{
        border: solid #AADDBB 1px;
        text-align: center;
        line-height: 14px;
        font-size: 14px;
        background-color: #fcfcfc;
        margin:10px ;
        padding: 10px ;
    }

    .url-text{
        color:black;
        line-height: 20px;
        font-size: 14px;

    }

    .url-text:hover{
        color:#FF5500;
    }

    a:hover{
        text-decoration: none;
    }
</style>

<div class="sui-row-fluid">
    <div class="span1 column ui-sortable">

        <ul class="sui-nav nav-list">
            <li class="displayBookmark"><a href="__MODULE__/Bookmark/displayBookmark">书签管理</a></li>
            <li class="displayBookmarkcategory"><a href="__MODULE__/Bookmarkcategory/displayBookmarkcategory">书签分类</a></li>
        </ul>

    </div>  {/*span1 end*/}

    <div class="span1 column ui-sortable">



        <ul class="sui-nav nav-tabs nav-xlarge tab-navbar tab-vertical tab-light">
            <li name="Think.get.cid">class="active" >
            <a href="__MODULE__/Bookmark/displayBookmark">全部分类</a>
            </li>

            <volist name="parentcategory" id="p">
                <li condition="$_GET['cid'] eq $p['bookmarkcategory_id']">class='active' >
                    <a href="__MODULE__/Bookmark/displayBookmark/cid/%7B%24p.bookmarkcategory_id%7D">
                        {$p.bookmarkcategory_name}
                    </a>
                </li>
            </volist>
        </ul>

    </div> {/*span1 end*/}



    <div class="span10 column ui-sortable">



           
        <a id="create" href="javascript:void(0);" class="sui-btn btn-large btn-primary">新增书签</a>

     <div class="" id="refresh">

            <volist name="secondClass" id="sc">
                <span style="margin-left: 50%">{$sc.bookmarkcategory_name}
                    <span id="openurl_{$sc.bookmarkcategory_id}">
                          <button class="sui-btn btn-bordered btn-primary">全开</button>
                    </span>
                </span>
                <div class="url-box">

                    <div class="sui-row-fluid" id="item_{$sc.bookmarkcategory_id}">

                    <volist name="bookmarkresult" id="vo">
                    <if condition="$sc['bookmarkcategory_id'] eq $vo['bookmark_cid']">
                        <div class="span1" id="url_{$vo.bookmark_id}">
                            <a id="{$vo.bookmark_id}" href="http://%7B%24vo.bookmark_url%7D" class="url-text" target="_blank">
                                {$vo.bookmark_name}
                            </a>
                            <span id="displayurl_{$vo.bookmark_id}" style="display: none">
                                <br>
                                 <a href="__MODULE__/Bookmark/deleteBookmark/id/%7B%24vo.bookmark_id%7D" onclick="if (!confirm('确认要删除?')) {window.event.returnValue = false;}">
                                     <i class="iconfont" style="font-size: 10%"></i>
                                 </a>

                                <a href="javascript:void();" id="{$vo.bookmark_id}_update">
                                    <i class="iconfont" style="font-size: 10%"></i>
                                </a>
                            </span>
                        </div>
                    </if>
                    </volist>

                    </div>


                </div>

            </volist>

     </div>





    </div> {/*span10 end*/}

</div>{/*sui-row-fluid end*/}


</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template