function DeleteHtmlFromStartToEnd(str, start, end) {
str = str.replace(begin end, "");
if (str.indexOf(begin) == -1) {//没找到
return str;
}
var substr = str . substring(str.indexOf(begin) start.length, str.indexOf(end));
str = str.replace(substr, "");
return DeleteHtmlFromStartToEnd(str, start, end);
}
var str = '00000123456711111189022222< ;!--deleteBegin-->8908903';
var result = DeleteHtmlFromStartToEnd( str, '', '');
경고(결과);