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 Jun 6, 2019. It is now read-only.
新版中文网站及文档已经上线,请访问 https://weex-project.io/cn/ , 此处后续不再维护,谢谢理解。
原文
除了其默认的意义,
<script>
标签支持在页面的顶级组件中通过type
属性定义两种配置。type="data"
: 配置初始化数据,这里定义的数据会覆盖定义在<script>
中的数据;type="config"
: 定义配置项。定义初始化数据
有时,很难在默认的
<script>
标签中维护巨大的数据结构。所以 Weex 允许我们通过<script type="data">
标签定义初始化数据。在这里定义的数据将完全取代默认的<script>
标签中定义的数据。例如:
配置项
Weex 也允许我们通过
<script type="config">
定义一些配置项,目前,仅只支持配置downgrade
。downgrade.osVersion
downgrade.appVersion
downgrade.weexVersion
downgrade.deviceModel
The text was updated successfully, but these errors were encountered: