KimhillZhang |
|
||
2012年2月8日
摘要:
每次用到JS替换字符串都要想半天,给他写出来得了。。<script language="javascript">$(function(){var str = 'rtsp://123.1.123.12:1234567/1d8a097f_51bf_4ef2_8380_71d63e9fb97a/c1v1.3gp'; var re = /\:\/\/.*$/i; if(re.test(str)){ var newStr = str.substring(str.indexOf("://")+3, str.length); var str 阅读全文
|
Copyright © 2024 KimhillZhang
Powered by .NET 9.0 on Kubernetes |