html中隐藏title属性方法

要用到title属性,可是却不想让他在浏览器中显示出来,又不能让他置空怎么办呢?

title置空方法:

<script>
$(function(){
$('a').each(function(){
$(this).attr('title', '');
});
});
</script>



title 属性隐藏办法

<a href="#" title="不想让他显示">
<span title="就显示你把"><img src="images/contactUs.jpg" alt=""/></span>
</a>
原文地址:https://www.cnblogs.com/2oveyou/p/3498828.html