日期:2014-05-16 浏览次数:20394 次
3种方式
<script> function fun1(x,y){ return x+y; } var fun2=function(x,y){ return x+y; } var fun3=new Function("x","y","return x+y"); document.write(fun1(5,6)); document.write(fun2(5,6)); document.write(fun3(5,6)); </script>?
s