也就是说,我将有html内容,我将显示从该内容的前几个字符,并将有一个阅读更多的链接在它前面。我目前使用的是以下代码: var textToShow= input.substring(0, lengthreadmore">' + txtToHide+ '</span>');
html = html + '<a id="read-
使用我现在使用的脚本,会更改单词,但也会显示javascript。我做错了什么?<html></head>This is a test of finding a word and changing it.</body>
<script type="text/javascript" src="jquery-2.1.4.min.js"></