摘要: 网上看到的一个题,在某个网页上发现了关于这个题目的应用,是用js写的,分享下源代码(稍作了修改): 1 function tdisoper(f0,f1,f2,f3) 2 { 3 this[0]=f0; 4 this[1]=f1; 5 this[2]=f2; 6 this[3]=f3; 7 } 8 disoper=new tdisoper("-","+","/","*"); 9 function oper(f,m,n)10 {11 if (f==3) return(m*n);12 if (f==2) return(m 阅读全文
posted @ 2013-05-31 22:18 xsauce 阅读(1037) 评论(0) 推荐(0) 编辑