国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 語言 > JavaScript > 正文

jquery easyui如何實現格式化列

2024-05-06 15:13:40
字體:
來源:轉載
供稿:網友

本文主要介紹了jquery easyui如何實現格式化列 ,正好最近需要用到,分享給大家,也給自己留個筆記

主框架頁面: 在主界面區會加載西區菜單點擊的URL內容.

<!DOCTYPE html><html><head>  <meta charset="UTF-8"/>  <title>主界面</title>  <div th:include="/public/util::public"/>  <div th:include="/public/util::jquery-easyui"/>  <script type="text/javascript" th:src="(${@configApp.getStaticWeb()})+'/cms/script/main/index.js'"></script>  <script type="text/javascript" th:src="(${@configApp.getStaticWeb()})+'/cms/script/site/site-index.js'"></script>  </head><body class="easyui-layout">  <div data-options="region:'north',title:''" style="height:80px;" id="north"></div>  <div data-options="region:'west',title:'系統功能區',split:true" style="width:200px;">    <ul class="easyui-tree" id="menu"></ul>  </div>  <div data-options="region:'center',title:'主界面區'" style="padding:5px;" id="center"></div></body></html>

此時在主頁面已經加載了easy-ui的腳本和CSS ,在各區頁面就不必加載了,即使加載了也會被去掉.

我一開始在datagrid頁面添加格式化函數,但是沒有效果,始終報找不到formatIsvalid這個函數.

<!DOCTYPE html><html><head>  <meta charset="UTF-8"/>  <title>站點列表頁面</title>  <script type="text/javascript">  function formatIsvalid(val,row){    return val=='1'?'是':'否';  }  </script></head><body>  <table id="site" title="站點列表" class="easyui-datagrid" th:url="@{/site/list}"      toolbar="#siteToolbar" rownumbers="true" fitColumns="true" singleSelect="true">    <thead>      <tr>        <th field="siteid" width="50">ID</th>        <th field="sitename" width="50">名稱</th>        <th field="siteurl" width="50">網址</th>        <th field="isvalid" width="50" formatter="formatIsvalid">是否有效</th>        <th field="isdelete" width="50">是否可以刪除</th>        <th field="remark" width="50">備注</th>        <th field="createtime" width="50">創建時間</th>      </tr>    </thead>  </table>  <div id="siteToolbar">    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newSite()">新增</a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editSite()">編輯</a>    <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="removeSite()">刪除</a>  </div></body></html>            
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 封开县| 通许县| 临潭县| 舒城县| 凤翔县| 大余县| 大渡口区| 阜宁县| 汨罗市| 云林县| 西乌珠穆沁旗| 汉源县| 鹿邑县| 垣曲县| 新宾| 井研县| 肥西县| 广元市| 仁怀市| 景东| 上高县| 都匀市| 临洮县| 肇东市| 柳州市| 思茅市| 锦屏县| 汝城县| 沂源县| 庆城县| 河北省| 西藏| 临泽县| 汨罗市| 任丘市| 定日县| 个旧市| 屏山县| 和田市| 平凉市| 威海市|