全文中用javascript中去除指两个字符串之间以及这两个字符串的内容 本帖最后由 nopainsnogain 于 2011-10-31 09:47:22 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><body><textarea id="txt" rows="10" cols="50">中国人民delottop去除内容delotbottom中国人民</textarea><script type="text/javascript">window.onload = function(){ var str = document.getElementById("txt").value; var reg = /delottop(\s|\S)*?delotbottom\s*/img; str = str.replace(reg, ""); alert(str);};</script></body></html> jquery .post返回值的问题???? jquery的scrollTop()函数,在firefox的18.0版本浏览器不能使用,在17的版本中可以使用,到底是怎么回事 土豆、优酷、酷6 的视频播放器怎么实现? 如何让按钮变成灰色 我想根据Label的Visible属性去更改一个链接是否生效,用jquery怎么实现阿.在线等待... img.filesize = -1 ??!! js怎么实现这样分割? iframe取值问题 求一正则表达式 为什么我不能使用onChang事件啊 JavaScript大牛:Douglas Crockford 用密码表实现加密码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<textarea id="txt" rows="10" cols="50">
中国人民
delottop
去除内容
delotbottom
中国人民
</textarea>
<script type="text/javascript">
window.onload = function(){
var str = document.getElementById("txt").value;
var reg = /delottop(\s|\S)*?delotbottom\s*/img;
str = str.replace(reg, "");
alert(str);
};
</script>
</body>
</html>