摘要:
定义和用法find() 方法获得当前元素集合中每个元素的后代,通过选择器、jQuery 对象或元素来筛选。<!DOCTYPE html><html><head><script type="text/javascript" src="/jquery/jquery.js"></script></head><body><p><span>Hello</span>, how are you?</p><p>Me? I' 阅读全文
摘要:
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()方法 阅读全文