api的应用场景:去掉目标字符串的<script>标签(包含里面的内容)
主要思想是prototype 1.6.0中的
Prototype.ScriptFragment = '<script[^>]*>([\\S\\s]*?)<\/script>'; stripScripts:function(){ return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); }
api的应用场景:去掉目标字符串的<script>标签(包含里面的内容)
主要思想是prototype 1.6.0中的
Prototype.ScriptFragment = '<script[^>]*>([\\S\\s]*?)<\/script>'; stripScripts:function(){ return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), ''); }