我的 html 代码看起来像这样
<a class="wsl_connect_with_provider" title="Connect with Facebook" data-provider="Facebook">
<img src="/assets/img/facebook.png">
</a>
<a class="wsl_connect_with_provider" title="Connect with Twitter" data-provider="Twitter">
<img src="/assets/img/twitter.png">
</a>
我想用这样的img
方式title
替换jquery
。
<a class="wsl_connect_with_provider" title="Connect with Facebook" data-provider="Facebook">
Connect with Facebook
</a>
<a class="wsl_connect_with_provider" title="Connect with Twitter" data-provider="Twitter">
Connect with Twitter
</a>
有人可以告诉我该怎么做吗?