asp中使用substr()
来源:百度知道 编辑:UC知道 时间:2024/06/15 05:08:16
word="wma,http://nbgzb.nbedu.net.cn/zhq/qKZkbDU$.wma,,[%CD%E2%"
怎么通过substr()取出http://nbgzb.nbedu.net.cn/zhq/qKZkbDU$.wma
怎么通过substr()取出http://nbgzb.nbedu.net.cn/zhq/qKZkbDU$.wma
asp中没有substr,而且用substr也不科学,因为长度不是固定的。
根据你提供的字符串,这里可以用split根据,来分割。
<%
word="wma,http://nbgzb.nbedu.net.cn/zhq/qKZkbDU$.wma,,[%CD%E2%"
word=split(word,",")(1)
response.write word
%>
这样就行了