|
@@ -236,9 +236,10 @@ let calcBaseView = {
|
|
|
operators[i].bind('click', function () {
|
|
|
let v = $(this)[0].textContent;
|
|
|
let insertStr = me.insertStr(v);
|
|
|
- if(me.arithmeticLegal(insertStr)){
|
|
|
+ me.inputExpr.val(insertStr);
|
|
|
+ /*if(me.arithmeticLegal(insertStr)){
|
|
|
me.inputExpr.val(insertStr);
|
|
|
- }
|
|
|
+ }*/
|
|
|
me.inputExpr.focus();
|
|
|
});
|
|
|
}
|
|
@@ -422,7 +423,7 @@ $(document).ready(function () {
|
|
|
calcBaseView.clickOpr([$('#addOpr'), $('#subOpr'), $('#mulOpr'), $('#divOpr'), $('#leftOpr'), $('#rightOpr')]);
|
|
|
|
|
|
//bind input control
|
|
|
- calcBaseView.inputControl();
|
|
|
+ //calcBaseView.inputControl();
|
|
|
|
|
|
//confirmBtn
|
|
|
calcBaseView.calcBaseConf();
|