熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

JS字符串處理實例

2022-06-13   來源: JSP教程 

  link(){
var olink = getElementById("link");
var text = olinkinnerHTML;
var start = textindexOf(">")+;
var end = textlastIndexOf("<");
text = textsubstring(startend);
locationhref=text;
}
<a href="java:void()" ="link()">maito:smvcn@yahoocomcn</a>


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20622.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.