首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android应用捆绑包功能不匹配

Android应用捆绑包功能不匹配
EN

Stack Overflow用户
提问于 2019-02-12 18:25:55
回答 1查看 82关注 0票数 0

在我的Nativescript应用程序中,我显示了如下内容:

Item 1 of 10

Item 2 of 10

....

Item 10 of 10

为此,我提供了以下代码,这些代码可以正常工作

代码语言:javascript
复制
<ListView id="listView" items="{{ items }}" itemTemplateSelector="$index">
    <ListView.itemTemplate>
        <StackLayout>
            <Label marginTop="20" textAlignment="center" fontWeight="Bold">
                <Label.formattedText>
                    <FormattedString>
                        <FormattedString.spans>
                            <span text="Item " />
                            <span text="{{ $index + 1 }}"/>
                            <span text=" Of "/>
                            <span text="{{$parents['ListView'].items, $parents['ListView'].items.length }}" />
                        </FormattedString.spans>
                    </FormattedString>
                </Label.formattedText>
            </Label>
        </StackLayout>
    </ListView.itemTemplate>
</ListView>

但是,当我发布https://docs.nativescript.org/angular/tooling/publishing/android-app-bundle上提到的Android App Bundle时,会产生如下内容:

Item 1 of [Object, Object]

Item 2 of [Object, Object]

....

Item 10 of [Object, Object]

有没有人知道如何处理这种情况,以及为什么它的功能与正常的不同?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-05 16:57:45

这是nativescript中的一个错误。我提出了一个问题,https://github.com/NativeScript/NativeScript/issues/7449也是如此。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54647899

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档