得到“NaN”的值 [英] got value of "NaN"

查看:48
本文介绍了得到“NaN”的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个错误值/NaN这是'我不想要的......


这就是我如何检查'变成'的价值NaN"

hello all, i have an error value / "NaN" value that''s i;m not expecting of..

this is i how i check the for the value that''s become "NaN"


展开 | 选择 | Wrap | 行号

推荐答案

你能说出 data.max_cashbnknourut 是对的吗?在评估之后?


亲切的问候
could you tell what data.max_cashbnknourut is right after the eval?

kind regards



你能说出数据。 max_cashbnknourut 就在eval之后?


亲切的问候
could you tell what data.max_cashbnknourut is right after the eval?

kind regards



是的在'是的,实际上我已经将该脚本逻辑用于另一个功能/模块,并且它运行良好......但我不知道何时我将该逻辑/脚本用于另一个模块,这是获得NaN价值......


请帮助,任何想法???


当max_cashbnknourut时得到NaN值,如何重置该值变为整数或max_cashbnknourut的值?在使用parseInt进行转换后?


yes that''s right, actually i''ve already use that script logic to another functionality/module, and it''s works well...but i have no idea when i;m using that logic/ script for another module, it''s get NaN value...

help please, any idea???

when the "max_cashbnknourut" got NaN value, how can i reset the value become integer or the value of "max_cashbnknourut" after it''s casting with parseInt ?


只需在eval-line之后发出警报并提醒 data.max_cashbnknourut ...它不能是NaN可以解析为int ...可能是data.max_cashbnknourut未定义? ...


亲切的问候
just put an alert after the eval-line and alert data.max_cashbnknourut ... it cannot be NaN when it could be parsed to int ... may be data.max_cashbnknourut is undefined? ...

kind regards


这篇关于得到“NaN”的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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