Skip to content

taro reduce 返回的数据中 map split异常 #1725

@sdfasffsdf

Description

@sdfasffsdf

taro reduce 返回的数据中 map split异常
代码格式为
{
!!content.pinyin ? (
content.pinyin.split(" ").map((item,index) => {
return (item!=""?({item}):(''))
})):('')
}

其中 content.pinyin.split 报错,报
image

content.pinyin.split 写成 输出 content.pinyin.length,可以正常输出,遇到了split则提示异常

👽 Taro v1.2.2

Taro CLI 1.2.2 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.1.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions