|
@@ -288,8 +288,7 @@ $(document).ready(() => {
|
|
|
}
|
|
|
if (p.type === 'left') {
|
|
|
iLeftCount += 1;
|
|
|
- // if (i !== 0 && (param[i-1].type !== 'calc' || param[i-1].type !== 'left'))
|
|
|
- if (i !== 0 && param[i-1].type !== 'calc')
|
|
|
+ if (i !== 0 && (param[i-1].type !== 'calc' || param[i-1].type !== 'left'))
|
|
|
return [false, '输入的表达式非法:(前应有运算符'];
|
|
|
}
|
|
|
if (p.type === 'right') {
|