Vue NAN类型处理
文章:https://blog.csdn.net/qq_29229567/article/details/103845532
(侵删)
主要用到的解决方法:
解决办法是使用 value !== value,如果值等于NaN,只会产生true。
例如:
在这里插入代码片if(e.detail.value !== 0){
this.conferenceInfo[prop] = 0;
}else{
this.conferenceInfo[prop] = Number(e.detail.value);
}