book对象的默认值 #5603
skybbk1001
started this conversation in
General
book对象的默认值
#5603
Replies: 1 comment 1 reply
-
|
这两个为空时应该都是 null |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
测试发现 搜索时有些书的简介或封面规则没有匹配上,在详情页的表现却不一样。简介为空时book.intro为空字符串,封面为空时book.coverUrl却是null。导致一些意料之外的问题,比如我用if (String(book.intro))判断是否存在简介正常,而用if (String(book.coverUrl))判断封面存在永远是true,因为String(book.coverUrl)是字符串"null"
Beta Was this translation helpful? Give feedback.
All reactions