/[0-9\+-\*\/a\(\)%]*/
eval("try{...}catch(e){alert(e.name)}");
其实eval就是把字符串当成语言来执行。