필터 아웃 비어 있지 않은 텍스트 공간 내부 노드하고 새로운 내용으로 대체합니다. 순수 자바 스크립트
와
$('.count_bottom')
// get all child nodes
.contents()
// filter out non-empty text node
.filter(function() {
// check node type and content
return this.nodeType === 3 && this.nodeValue.trim().length;
// replace it with new content
}).replaceWith('new text');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<span class="count_bottom"><i class="blue"><i class="fa fa-sort-asc"></i>12% </i> From last seen</span>
// get the `i` tag inside `span`
document.querySelector('.count_bottom > i')
// get adjacent text node which is immediately after the element
.nextSibling
// update text content of the text node
.textContent = 'new text';
<span class="count_bottom"><i class="blue"><i class="fa fa-sort-asc"></i>12% </i> From last seen</span>
당신이 시도 코드를 기입하십시오. 아무 것도 시도하지 않았다면 수백만 개의 jQuery 자습서가 있고 적어도 하나는 꼭해야합니다. – Sevanteri
다른 텍스트 ''에 텍스트를 포함하고 고유 한 클래스를 지정하여 액세스하지 않는 이유는 무엇입니까? – vijayP