<script type="text/javascript" src="jquery1.4.js"></script>
<script type="text/javascript">
$(function(){
    $(".test li,.test dd").click(function(){
        alert('本身为大写:' + $(this).get(0).tagName + '\n利用toLowerCase()转换为小写:' + $(this).get(0).tagName.toLowerCase()  + '\n利用toUpperCase()转换为大写:' + $(this).get(0).tagName.toUpperCase());
    })
});
</script>

<div class="test">
 <ul>
     <li>lili</li>
    <li>lili</li>
 </ul>
 
  <dl>
     <dd>dddd</dd>
    <dd>dddd</dd>
 </dl>
</div>

下载地址:点击这里

相关文章:

  • 2021-07-31
  • 2021-12-27
  • 2022-12-23
  • 2021-08-12
  • 2021-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2021-11-29
  • 2021-09-13
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案