JavaScript数学表达式评估器 [英] JavaScript Mathematical Expression Evaluator

查看:75
本文介绍了JavaScript数学表达式评估器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了
JavaScript数学表达式评估器
来自: http://www.codeproject.com/KB/scripting/jsexpressioneval/JSExpressionEval_src.zip [ ^ ]

并分析了文件"Tokenizer.js",我认为第47行肯定有错误.

u和v之间不应该有逗号:
var lstAlpha ="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,uv,w,x, y,z;

诺伯特
norbert.kraemer@real-net.de

I downloaded
JavaScript Mathematical Expression Evaluator
from:
http://www.codeproject.com/KB/scripting/jsexpressioneval/JSExpressionEval_src.zip[^]

and analysed the file "Tokenizer.js" and I think there must be a mistake in line number 47.

Shouldn''t there be a comma between u and v:
var lstAlpha = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,uv,w,x,y,z";

Norbert
norbert.kraemer@real-net.de

推荐答案

对于Javascript,我认为表达式评估器没有任何意义,因为它可以通过Java解释器本身进行编码功能eval.

请参阅我的Javascript计算器;如果您使用查看页面源代码",则可以获得其完整的源代码: http://www.sakryukov.org/freeware/calculator / [ ^ ].

—SA
I see no sense in expression evaluator when it comes to Javascript, because the code it can its the Javascript interpreter itself via function eval.

Please see my Javascript calculator; you can get its full source code if you use "View page source": http://www.sakryukov.org/freeware/calculator/[^].

—SA


这篇关于JavaScript数学表达式评估器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆