Показать сообщение отдельно
Непрочитано 22.11.2015, 17:25   #7
Пользователь

Автор темы (Топик Стартер) Re: JavaScript калькулятор

Цитата:
Сообщение от PROGRAMMATOR Посмотреть сообщение
Это уже обфускацию прошло или такой стиль?

Пропишите после формулы:

console.log(Pbum, Ppec, Potd, Euro);
Code: Javascript
Сообщите что возвращает в консоль браузера. Очень похоже на то, что множится на строку.
Возможно у меня мало опыта еще в JS, но код вроде чистый

Вот что пишет консоль
Код HTML:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
jquery-latest.js:9183 Uncaught TypeError: Cannot read property 'value' of null
После запуска расчета

Код HTML:
jquery-latest.js:9592 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
jquery-latest.js:9183 Uncaught TypeError: Cannot read property 'value' of null(anonymous function) @ test.htm:27jQuery.extend.each @ jquery-latest.js:383jQuery.fn.jQuery.each @ jquery-latest.js:136XmlKurs @ test.htm:24fire @ jquery-latest.js:3119self.fireWith @ jquery-latest.js:3231done @ jquery-latest.js:9275callback @ jquery-latest.js:9685send @ jquery-latest.js:9691jQuery.extend.ajax @ jquery-latest.js:9176(anonymous function) @ test.htm:16fire @ jquery-latest.js:3119self.fireWith @ jquery-latest.js:3231jQuery.extend.ready @ jquery-latest.js:3443completed @ jquery-latest.js:3474
test.htm:182 0.0540225 109.2 14.59 Object {}

Последний раз редактировалось Antonio; 22.11.2015 в 17:28. Причина: Добавил код
Antonio вне форума Ответить с цитированием