You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2021. It is now read-only.
针对于非压缩版本
jquery-weui.js
中col.replaceValues
函数实现的一点疑问。在该函数实现内部,有一句col.setValue(col.values[0] || '', 0, true);
,对于col.values[0] || ''
表达式,如果col.values[0]
取值为int
类型的0
的话(不是字符串类型的"0"),那么该表达之最终的取值结果为''(空字符串),导致后续代码可能出现问题。想确认下,当时就是这么设计的,不允许使用int
类型的0
,还是忽略了0
值的考虑?发现此问题的前提是,我尝试修改了
city-picker.js
的数据源中关于name
和code
值的描述,其中部分数据的code
值使用了0
,导致在滑动到code
值为0的选项时报错,debug之后发现此问题。code
值为0
,代码可以正常执行The text was updated successfully, but these errors were encountered: