plan
 1 <span class="class_span">买家昵称</span>
 2 
 3  $(\'.class_span\').each(function () {        
 4         if($(this).text()==\'买家昵称\'){
 5              $(this).html(\'收货人\');
 6         }
 7  });
 8  
 9  
10  


span 标签中在浏览器显示为"收货人"而不是 "买家昵称",因为用了text()方法

分类:

技术点:

相关文章:

  • 2021-09-14
  • 2021-10-26
  • 2021-09-21
  • 2021-10-16
  • 2021-12-19
  • 2021-10-13
  • 2021-10-03
猜你喜欢
  • 2021-10-16
  • 2021-12-19
  • 2021-10-16
  • 2021-10-16
  • 2021-10-16
  • 2021-12-19
  • 2021-11-27
相关资源
相似解决方案