Posted in Javascript onAugust 05, 2013
link(){ var olink = getElementById("link"); var text = olink.innerHTML; var start = text.indexOf(">")+1; var end = text.lastIndexOf("<"); text = text.substring(start,end); location.href=text; } <a href="java:void(0)" ="link()">maito:smvcn@yahoo.com.cn</a>
JS字符串处理实例代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@