django js 實(shí)現(xiàn)表格動(dòng)態(tài)標(biāo)序號(hào)
創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于做網(wǎng)站、網(wǎng)站建設(shè)、喀什網(wǎng)絡(luò)推廣、微信小程序定制開發(fā)、喀什網(wǎng)絡(luò)營(yíng)銷、喀什企業(yè)策劃、喀什品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供喀什建站搭建服務(wù),24小時(shí)服務(wù)熱線:028-86922220,官方網(wǎng)址:chinadenli.net
<table class="table table-striped"> <thead> <tr class="key_words_head"> <th>序號(hào)</th> <th>類目</th> <th>關(guān)鍵詞</th> <th>操作</th> </tr> </thead> <tbody id="key_words_body"> {% for keywords in classify_keywords_obj %} <tr class="key_words_tbody"> <td id="td_num"></td> <td id="hide_id">{{ keywords.id }}</td> <td id="td_classify">{{ keywords.classify.classify_name }}</td> <td id="td_keywords">{{ keywords.keywords }}</td> <td><a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" onclick="show_change_model('{{ keywords.id }}')">編輯</a> <a href="javascript:void(0);" rel="external nofollow" rel="external nofollow" onclick="del_settings('{{ keywords.id }}',this)">刪除</a></td> </tr> {% endfor %} </tbody> </table>
<script> function xu_hao() { var oTable = $('tr.key_words_tbody').length; for (var i = 0; i < oTable + 1; i++) { $('tr.key_words_tbody').eq(i).children("td#td_num").empty(); $('tr.key_words_tbody').eq(i).children("td#td_num").append(i + 1); } } </script>
總結(jié)
以上所述是小編給大家介紹的django js 實(shí)現(xiàn)表格動(dòng)態(tài)標(biāo)序號(hào)的實(shí)例代碼 ,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)創(chuàng)新互聯(lián)網(wǎng)站的支持!
如果你覺得本文對(duì)你有幫助,歡迎轉(zhuǎn)載,煩請(qǐng)注明出處,謝謝!
本文題目:djangojs實(shí)現(xiàn)表格動(dòng)態(tài)標(biāo)序號(hào)的實(shí)例代碼
URL分享:http://chinadenli.net/article12/gicogc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供商城網(wǎng)站、全網(wǎng)營(yíng)銷推廣、建站公司、網(wǎng)站制作、網(wǎng)站設(shè)計(jì)公司、微信公眾號(hào)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
網(wǎng)頁(yè)設(shè)計(jì)公司知識(shí)