写js取url,加入参数 如:http://www.sina.com/sddd/或者http://www.sina.com/sddd/aa/改为:http://www.sina.com/big/sddd/http://www.sina.com/big/sddd/aa/在.com结束后面加上/big/下面路径 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>str = "http://www.sina.com/sddd/";//字符串直接替换newstr = str.replace('.com/','.com/big/');alert(newstr);//正则替换newstr = str.replace(/(.+?\/\/.+?)(\/.+)/,'$1/big$2');alert(newstr);</script> 高手来看下,php处理windows路径大于256字节情况 两条MYSQL 语句的性能比较!100分 希望各位 php 高手帮我下啊 谢谢了 求助,用php 与ajax 怎能作出一个公共聊天室? PHP版块的可用分是怎么来的? 请高手帮忙看看这条 SQL 语句!!谢谢 ----不知道再下去应该学什么了,大家给点意见。---- 为什么我的留言本总是无法留言不成功? php可使用的新型数据库 PHPBASE 很有意思的一套程序,大商创,我测试用一个商家帐号一口气上传了60W商品量 新手问一下PHP类的使用方法 PHP添加文件
str = "http://www.sina.com/sddd/";
//字符串直接替换
newstr = str.replace('.com/','.com/big/');
alert(newstr);
//正则替换
newstr = str.replace(/(.+?\/\/.+?)(\/.+)/,'$1/big$2');
alert(newstr);
</script>