zoukankan      html  css  js  c++  java
  • 对表格元素操作的两种方式

    选中表格的的一行元素
    function dblGetBody(){//双击查看详细内容 var e=WT.e.fix(e),_e=e.t; while(_e.tagName != 'TABLE'){ if(_e.attr('opt')){ break; } if(_e.tagName == 'TR' && _e.attr('idx')){ createTips('查看'); newsQuery({id:_e.attr('idx')},function(data){ inputDisable(); dataView(data[0]); }); } _e = _e.pn(); } }
    选中表格中某一个元素
    function newsOpt(){ var e=WT.e.fix(e),_e=e.t; switch(_e.attr('opt')){ case 'newsPpl_edit': createTips('修改'); newsQuery({id:_e.pn(2).attr('idx')},function(data){ dataView(data[0]); $('newsPpl_edit_btns').dc('dn'); $('newsPpl_editRecovery_btn').evt('click',function(){ dataView(JSON.parse(WT.ls.get('newsPplInputDate')),true); }); $('newsPpl_edit_btn').evt('click',function(){ var param = getInputVal(); param.id = _e.pn(2).attr('idx') newsEdit(param); }); $('newsPpl_edit_close_btn').evt('click',function(){ var param = getInputVal(); param.id = _e.pn(2).attr('idx') newsEdit(param); settingTips.r(); newsBody = null; newsBrief = null; $('tips_mask').hide(); }); $('clear_edit_btn').evt('click',function(){ clearInputVal(); }); }); break; case 'newsPpl_del': $('newsPpl_del').dc('dn'); $('mask').style.display = 'block'; $('newsPpl_delTitle').ht(_e.attr('tips')); $('newsPpl_del_no').evt('click',function(){ $('newsPpl_del').ac('dn'); $('mask').style.display = 'none'; }); $('newsPpl_del_yes').evt('click',function(){ newsDel({id:_e.pn(2).attr('idx')}); }); break; } }
  • 相关阅读:
    性能优化随笔
    Linux文件类型及如何查看,修改文件读写权限
    ngx_pagespeed
    用U盘安装Linux系统的简单方法
    Maven 3 入门 安装与配置
    CentOS 6.2 安装教程
    各种代码文件中的注释格式
    Linux下的WebLogic安装部署
    Win8常用快捷键
    Jenkins入门总结
  • 原文地址:https://www.cnblogs.com/lv-sally/p/5642616.html
Copyright © 2011-2022 走看看