https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029092119794-1182278230.jpg

支付宝

https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029091740174-1560674849.png

微 信

HTML隐藏

 

JS:

$("#department").hide();

JSP:

<th id="department" width="5%">部门</th>

JS:

loadDepartment: function(department){
                return " style=\"display:none;\" ";
            }

JSP:

<script id="template" type="text/x-jsrender">
    <tr id="trtd" style="font-size:10px;">
        <td {{loadDepartment:department}}>{{loadDepartment:department}}</td>
        <td>{{:updatetime}}</td>
    <td><input type="button" class="btn btn-primary edit" value="修改" data="{{attr:id}}" /></td>
    </tr>
</script>

 

-----------------------------------------------------------------------------
title效果:

 

<abbr title="西南大学荣昌校区">西大</abbr>
 <acronym title="西南大学荣昌校区">西大</acronym>

相同效果

所有主流浏览器都支持 <abbr> 标签

HTML5 不支持 <acronym> 标签。请使用 <abbr> 标签代替它。

 

获取元素:

element.getAttribute()            返回元素节点的指定属性值。
element.getElementsByTagName()    返回拥有指定标签名的所有子元素的集合。

 

posted @ 2017-05-16 16:59  huangwanlin  阅读(301)  评论(0编辑  收藏  举报
Copyright 2012-2021 林云希科技有限责任公司