输入banner图图片脚本导航/分类

JS正则替换掉小括号及内容的方法

正则表达式:\ ( [ ^ \ ) ] * \ )

JS代码:

var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,"");