1. 程式人生 > >這個網頁用到了什麽技術,<script>標簽,還有雙大括號{{}}是什麽意思

這個網頁用到了什麽技術,<script>標簽,還有雙大括號{{}}是什麽意思

asc thum inpu 選擇 tex angle 參考 div jquery

 <#compress>
    <@override name="title">${brand.name}-商品</@override>
    <@override name="viewbody">
    <div class="row">
        <div class="col-md-12">
            <h3 class="page-title">
            ${brand.name}-商品
                <small>${brand.name}-商品管理.</
small> </h3> <ul class="page-breadcrumb breadcrumb"> <li> <i class="fa fa-home"></i> <a href="${ctx}/admin/home"> 首頁 </a> <
i class="fa fa-angle-right"></i> </li> <li> <a href="${ctx}/admin/brand"> 品牌管理 </a> <i class="fa fa-angle-right"></i> </li> <
li> <a href="${ctx}/admin/brand"> ${brand.name}-商品列表 </a> </li> </ul> </div> </div> <div class="row"> <div class="col-md-12"> <div class="portlet box light-grey"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-globe"></i>${brand.name}-商品一覽表 </div> </div> <div class="portlet-body"> <div class="table-toolbar"> <div class="btn-group"> <a id="floor_create" href="${ctx}/admin/commodity/create/${brand.id}" class="btn default green-stripe"> 新增 <i class="fa fa-plus"></i> </a> <a id="floor_batch_delete" class="btn default yellow-stripe batchdelete" data-action="${ctx}/admin/commodity/remove/${brand.id}" data-tables="#commodity-list" data-message="您確認刪除所選擇的商品信息麽?"> 刪除 <i class="fa fa-ban"></i> </a> </div> </div> <table class="table table-striped table-bordered table-hover" id="commodity-list"> <thead> <tr> <th width="30"><input type="checkbox" name="checkall"></th> <th width="30">序號</th> <th style="display: none;">ID</th> <th style="display: none;">品牌</th> <th width="80">商品名稱</th> <th width="120">商品描述</th> <th width="80">圖片</th> <th width="120">圖片類型</th> <th style="text-align: center" width="120">操作</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> <#--Template--> <script id="action_template" type="text/x-handlebars-template"> <a href="${ctx}/admin/commodity/edit/{{id}}" class="btn default blue-stripe" title="編輯"> <i class="fa fa-edit"></i> </a> <a href="javascript:void(0);" class="btn default yellow-stripe" title="刪除" data-hook="remove-action" data-action="${ctx}/admin/commodity/remove?DATA={{id}}"> <i class="fa fa-trash-o"></i> </a> </script> <script id="priture_template" type="text/x-handlebars-template"> {{#if picture}} <a href="${ctx}{{picture}}" class="thumbnail fancybox-button" data-rel="fancybox-button"> <img class="" src="${ctx}{{portfolio}}" alt=""> </a> {{else}} 暫無圖片 {{/if}} </script> </@override> <@override name="viewparams"> g.brand = ‘${brand.id}‘; g.actiontpl = ‘#action_template‘; g.prituretpl = ‘#priture_template‘; </@override> <@override name="viewmodule">commodity_list</@override> <@extends name="../_basic/main.ftl"></@extends> </#compress>

1,采用的jsp
2,template是前端模板引擎
template參考文檔:
http://www.jq22.com/jquery-info1097
{{}}這是模板引擎的一種格式,檢測到它,當中是變量

這個網頁用到了什麽技術,<script>標簽,還有雙大括號{{}}是什麽意思